From 8bb33f70055d79993bbe3e68f68069b7e27edff7 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 25 Feb 2026 19:57:15 +0100 Subject: misc top improvements --- src/zenutil/consoletui.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/zenutil/consoletui.cpp') diff --git a/src/zenutil/consoletui.cpp b/src/zenutil/consoletui.cpp index 777819224..1621b7198 100644 --- a/src/zenutil/consoletui.cpp +++ b/src/zenutil/consoletui.cpp @@ -503,6 +503,10 @@ TuiPollInput() { return TuiInput::Quit; } + if (vk == VK_F5) + { + return TuiInput::Refresh; + } if (vk == VK_UP) { return TuiInput::ArrowUp; @@ -535,6 +539,19 @@ TuiPollInput() { return TuiInput::ArrowDown; } + // F5 = \033[15~ + if (Final == '1') + { + int b2 = ReadByteWithTimeout(50); + if (b2 == '5') + { + int b3 = ReadByteWithTimeout(50); + if (b3 == '~') + { + return TuiInput::Refresh; + } + } + } } return TuiInput::Quit; // bare Esc } -- cgit v1.2.3