diff options
author | ftrvxmtrx <devnull@localhost> | 2014-12-13 21:58:49 +0100 |
---|---|---|
committer | ftrvxmtrx <devnull@localhost> | 2014-12-13 21:58:49 +0100 |
commit | 96525edaae6e1fb076b4286fdd41032dafff651c (patch) | |
tree | f91610842c5ef64cbc22ef63a1755d699bad9b82 /sys/src/cmd/winwatch.c | |
parent | feb7702c9eba0eeb420dd08cbcdb4d922c1ba49c (diff) |
various cmds: replace magic numbers with Kdel/Keof, etc
Diffstat (limited to 'sys/src/cmd/winwatch.c')
-rw-r--r-- | sys/src/cmd/winwatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/winwatch.c b/sys/src/cmd/winwatch.c index c86ff7a66..8a68f1d58 100644 --- a/sys/src/cmd/winwatch.c +++ b/sys/src/cmd/winwatch.c @@ -3,6 +3,7 @@ #include <draw.h> #include <event.h> #include <regexp.h> +#include <keyboard.h> enum { VISIBLE = 1, @@ -318,7 +319,7 @@ main(int argc, char **argv) for(;;){ switch(eread(Emouse|Ekeyboard|Etimer, &e)){ case Ekeyboard: - if(e.kbdc==0x7F || e.kbdc=='q') + if(e.kbdc==Kdel || e.kbdc=='q') exits(0); break; case Emouse: |