diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 21:13:47 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-25 21:13:47 -0600 |
| commit | 6ea4a5ac01d04a3ed857f37634265bca25b89edb (patch) | |
| tree | 69b9e9156b5051fb3a99646835cf4ca1699fd645 /tests/git@git.abendless.com: | |
| parent | 9dd085c8ed0853f4d96b4de0b9aab71be537240e (diff) | |
| download | ztop-6ea4a5ac01d04a3ed857f37634265bca25b89edb.tar.gz | |
tui: translate input from EBCDIC, restore the cursor
The tty converts output but not input, so keys and cursor reports arrive
as EBCDIC in raw mode: 'q' is 0x98 and the report starts 0x27 0x5B.
Translate each read with __e2a_l before decoding, and make the code that
looks for ESC use the ASCII 0x1b it sees afterwards. Leaving the screen
also forgot to show the cursor again.
Diffstat (limited to 'tests/git@git.abendless.com:')
0 files changed, 0 insertions, 0 deletions
