boon

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

commit
899180a341b5c316df4994a0d41a10fa39f0400e
parent
6f1228495a06dd2095a3fb298aa1deb23ee988a9
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-07-08 07:11
add KEY_DEL

Diffstat

M README.md 1 +
M boon.py 1 +

2 files changed, 2 insertions, 0 deletions


diff --git a/README.md b/README.md

@@ -64,6 +64,7 @@ escape sequences:
   64    64 - `KEY_ESC`
   65    65 - `KEY_HOME`
   66    66 - `KEY_END`
   -1    67 - `KEY_DEL`
   67    68 - `KEY_PPAGE`
   68    69 - `KEY_NPAGE`
   69    70 - `KEY_UP`

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

@@ -19,6 +19,7 @@ KEY_BACKSPACE = curses.tigetstr('kbs').decode('ascii')
   19    19 KEY_ESC = '\x1b'
   20    20 KEY_HOME = CSI + 'H'
   21    21 KEY_END = CSI + 'F'
   -1    22 KEY_DEL = CSI + '3~'
   22    23 KEY_PPAGE = CSI + '5~'
   23    24 KEY_NPAGE = CSI + '6~'
   24    25 KEY_UP = CSI + 'A'