diff options
| author | Stefan Boberg <[email protected]> | 2026-02-25 19:57:15 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-02-25 19:57:15 +0100 |
| commit | 8bb33f70055d79993bbe3e68f68069b7e27edff7 (patch) | |
| tree | da12cb94993f43fbae51865a0238a774fbb37b1b /src/zenutil/consoletui.cpp | |
| parent | initial top command sketch (diff) | |
| download | archived-zen-sb/more-tui.tar.xz archived-zen-sb/more-tui.zip | |
misc top improvementssb/more-tui
Diffstat (limited to 'src/zenutil/consoletui.cpp')
| -rw-r--r-- | src/zenutil/consoletui.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 } |