On Mon, Jun 22, 2020 at 08:57:43PM -0600, Theo de Raadt wrote:
> In OpenBSD, the erase character is ^?
>
> ^H is accepted in a few places, like here (because of CTRL_H) but
> it is absolutely not the canonical tty 'character erase' character,
> which is implied in your text by placing it next to kill and the
> canonical tty werase default ^U
Right, ^H works here and there but erase is in fact ^?.
^U is usually line kill, not word erase, no?
> It was vague, and I guess OK. But your increasing precision is making
> it wrong.
Just add ^U as canonical line kill and leave the manual as is.
Feedback? OK?
Index: engine.c
===================================================================
RCS file: /cvs/src/usr.bin/systat/engine.c,v
retrieving revision 1.25
diff -u -p -r1.25 engine.c
--- engine.c 12 Jan 2020 20:51:08 -0000 1.25
+++ engine.c 22 Jun 2020 13:39:51 -0000
@@ -1204,6 +1204,7 @@ cmd_keyboard(int ch)
break;
case 0x1b:
case CTRL_G:
+ case CTRL_U:
if (cmd_len > 0) {
cmdbuf[0] = '\0';
cmd_len = 0;
Index: engine.h
===================================================================
RCS file: /cvs/src/usr.bin/systat/engine.h,v
retrieving revision 1.12
diff -u -p -r1.12 engine.h
--- engine.h 12 Jan 2020 20:51:08 -0000 1.12
+++ engine.h 22 Jun 2020 13:39:52 -0000
@@ -36,6 +36,7 @@
#define CTRL_L 12
#define CTRL_N 14
#define CTRL_P 16
+#define CTRL_U 21
#define CTRL_V 22
#define META_V 246