From 699027000551f04ce9f3e532d20c6e484ca7a945 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 31 Aug 2023 04:56:50 +1000 Subject: [PATCH] Still inkorrect inglish Hopefully thats better now --- src/terminal_ui.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index 819e3fca..81ee7b65 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -429,7 +429,7 @@ static constexpr StringView assistant_dilbert[] = template T sq(T x) { return x * x; } static sig_atomic_t resize_pending = 0; -static sig_atomic_t terrminal_hungup = 0; +static sig_atomic_t terminal_hungup = 0; template static void signal_handler(int) @@ -465,7 +465,7 @@ TerminalUI::TerminalUI() enable_mouse(true); set_signal_handler(SIGWINCH, &signal_handler<&resize_pending>); - set_signal_handler(SIGHUP, &signal_handler<&terrminal_hungup>); + set_signal_handler(SIGHUP, &signal_handler<&terminal_hungup>); set_signal_handler(SIGTSTP, [](int){ TerminalUI::instance().suspend(); }); check_resize(true); @@ -474,7 +474,7 @@ TerminalUI::TerminalUI() TerminalUI::~TerminalUI() { - if (not terrminal_hungup) { + if (not terminal_hungup) { enable_mouse(false); restore_terminal(); tcsetattr(STDIN_FILENO, TCSAFLUSH, &m_original_termios); @@ -668,7 +668,7 @@ void TerminalUI::check_resize(bool force) Optional TerminalUI::get_next_key() { - if (terrminal_hungup) + if (terminal_hungup) { set_signal_handler(SIGWINCH, SIG_DFL); set_signal_handler(SIGHUP, SIG_IGN); @@ -693,7 +693,7 @@ Optional TerminalUI::get_next_key() if (unsigned char c = 0; read(STDIN_FILENO, &c, 1) == 1) return c; - terrminal_hungup = 1; + terminal_hungup = 1; return {}; };