fix(typo): correct function name
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m40s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m40s
This commit is contained in:
@@ -102,7 +102,7 @@ pub fn App(comptime E: type, comptime R: fn (comptime bool) type, comptime fulls
|
||||
pub fn interrupt(this: *@This()) !void {
|
||||
this.quit_event.set();
|
||||
if (fullscreen) {
|
||||
try terminal.existAltScreen();
|
||||
try terminal.exitAltScreen();
|
||||
try terminal.restoreScreen();
|
||||
}
|
||||
if (this.thread) |thread| {
|
||||
@@ -117,7 +117,7 @@ pub fn App(comptime E: type, comptime R: fn (comptime bool) type, comptime fulls
|
||||
try terminal.disableRawMode(termios);
|
||||
if (fullscreen) {
|
||||
try terminal.showCursor();
|
||||
try terminal.existAltScreen();
|
||||
try terminal.exitAltScreen();
|
||||
try terminal.restoreScreen();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ pub fn enterAltScreen() !void {
|
||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?1049h");
|
||||
}
|
||||
|
||||
pub fn existAltScreen() !void {
|
||||
pub fn exitAltScreen() !void {
|
||||
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?1049l");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user