summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/statusmsg.c
diff options
context:
space:
mode:
authorftrvxmtrx <devnull@localhost>2014-12-13 21:58:49 +0100
committerftrvxmtrx <devnull@localhost>2014-12-13 21:58:49 +0100
commit96525edaae6e1fb076b4286fdd41032dafff651c (patch)
treef91610842c5ef64cbc22ef63a1755d699bad9b82 /sys/src/cmd/aux/statusmsg.c
parentfeb7702c9eba0eeb420dd08cbcdb4d922c1ba49c (diff)
various cmds: replace magic numbers with Kdel/Keof, etc
Diffstat (limited to 'sys/src/cmd/aux/statusmsg.c')
-rw-r--r--sys/src/cmd/aux/statusmsg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/statusmsg.c b/sys/src/cmd/aux/statusmsg.c
index d98446d89..7f7fef2fc 100644
--- a/sys/src/cmd/aux/statusmsg.c
+++ b/sys/src/cmd/aux/statusmsg.c
@@ -3,6 +3,7 @@
#include <draw.h>
#include <bio.h>
#include <event.h>
+#include <keyboard.h>
int newwin(char*);
@@ -77,7 +78,7 @@ msg(Biobuf *b)
case 0:
sleep(1000);
while(!die && (k = eread(Ekeyboard|Emouse, &e))) {
- if(nokill==0 && k == Ekeyboard && (e.kbdc == 0x7F || e.kbdc == 0x03)) { /* del, ctl-c */
+ if(nokill==0 && k == Ekeyboard && (e.kbdc == Kdel || e.kbdc == Ketx)) {
die = 1;
postnote(PNPROC, parent, "interrupt");
_exits("interrupt");