feat(vaxis): reset terminal state on panic with a custom panic handler
This commit is contained in:
parent
49ad54d60c
commit
dc21e7f6ac
2 changed files with 17 additions and 2 deletions
|
@ -15,10 +15,15 @@ pub const application_name = "flow";
|
|||
pub const application_logo = " ";
|
||||
|
||||
pub const std_options = .{
|
||||
.log_level = .debug,
|
||||
// .log_level = if (builtin.mode == .Debug) .debug else .warn,
|
||||
.log_level = if (builtin.mode == .Debug) .info else .warn,
|
||||
.logFn = log.std_log_function,
|
||||
};
|
||||
|
||||
const renderer = @import("renderer");
|
||||
|
||||
pub const panic = if (@hasDecl(renderer, "panic")) renderer.panic else std.builtin.default_panic;
|
||||
|
||||
pub fn main() anyerror!void {
|
||||
const params = comptime clap.parseParamsComptime(
|
||||
\\-h, --help Display this help and exit.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue