From c83ceff925647184721030c2130f7eb5ad3dd3f4 Mon Sep 17 00:00:00 2001 From: Yves Biener Date: Thu, 30 Jan 2025 16:28:36 +0100 Subject: [PATCH] fix(typo): correct function name --- src/app.zig | 4 ++-- src/terminal.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.zig b/src/app.zig index c656f37..500ad48 100644 --- a/src/app.zig +++ b/src/app.zig @@ -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(); } } diff --git a/src/terminal.zig b/src/terminal.zig index df8414e..9a14480 100644 --- a/src/terminal.zig +++ b/src/terminal.zig @@ -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"); }