boon

unix terminal framework
git clone https://git.ce9e.org/boon.git

commit
1b93b7a71aaef7cf97f25eaf93d0461fa2e95de1
parent
803d12952e05de5e46ab21a22568bef7e7557775
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-07-11 05:25
consistent encoding of ESC

Diffstat

M boon.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/boon.py b/boon.py

@@ -15,7 +15,7 @@ CSI = '\033['
   15    15 # tigertstr uses \033O (SS3) instead of \033[ (CSI) as prefix
   16    16 # https://en.wikipedia.org/wiki/ANSI_escape_code
   17    17 KEY_BACKSPACE = curses.tigetstr('kbs').decode('ascii')
   18    -1 KEY_ESC = '\x1b'
   -1    18 KEY_ESC = '\033'
   19    19 KEY_HOME = CSI + 'H'
   20    20 KEY_END = CSI + 'F'
   21    21 KEY_DEL = CSI + '3~'