fix(typo): correct function name
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 1m40s

This commit is contained in:
2025-01-30 16:28:36 +01:00
parent 1ea410354f
commit c83ceff925
2 changed files with 3 additions and 3 deletions

View File

@@ -102,7 +102,7 @@ pub fn App(comptime E: type, comptime R: fn (comptime bool) type, comptime fulls
pub fn interrupt(this: *@This()) !void { pub fn interrupt(this: *@This()) !void {
this.quit_event.set(); this.quit_event.set();
if (fullscreen) { if (fullscreen) {
try terminal.existAltScreen(); try terminal.exitAltScreen();
try terminal.restoreScreen(); try terminal.restoreScreen();
} }
if (this.thread) |thread| { 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); try terminal.disableRawMode(termios);
if (fullscreen) { if (fullscreen) {
try terminal.showCursor(); try terminal.showCursor();
try terminal.existAltScreen(); try terminal.exitAltScreen();
try terminal.restoreScreen(); try terminal.restoreScreen();
} }
} }

View File

@@ -35,7 +35,7 @@ pub fn enterAltScreen() !void {
_ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?1049h"); _ = 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"); _ = try std.posix.write(std.posix.STDIN_FILENO, "\x1b[?1049l");
} }