aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenutil')
-rw-r--r--src/zenutil/consoletui.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/zenutil/consoletui.cpp b/src/zenutil/consoletui.cpp
index 84af1d372..354d24d8d 100644
--- a/src/zenutil/consoletui.cpp
+++ b/src/zenutil/consoletui.cpp
@@ -74,6 +74,15 @@ EnableVirtualTerminal()
// ANSI escape codes are native on POSIX terminals; nothing to do
}
+// SIGWINCH (terminal resize) flag — set by signal handler, consumed by TuiReadKey()
+static volatile sig_atomic_t s_GotSigWinch = 0;
+
+static void
+SigWinchHandler(int /*Sig*/)
+{
+ s_GotSigWinch = 1;
+}
+
// RAII guard: switches the terminal to raw/unbuffered input mode and restores
// the original attributes on destruction.
class RawModeGuard
@@ -146,15 +155,6 @@ static bool s_InLiveMode = false;
static char s_LastChar = 0;
-// SIGWINCH (terminal resize) flag — set by signal handler, consumed by TuiReadKey()
-static volatile sig_atomic_t s_GotSigWinch = 0;
-
-static void
-SigWinchHandler(int /*Sig*/)
-{
- s_GotSigWinch = 1;
-}
-
#endif // ZEN_PLATFORM_WINDOWS / POSIX
//////////////////////////////////////////////////////////////////////////