aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-07 14:34:47 -0600
committerRob Landley <rob@landley.net>2016-01-07 14:34:47 -0600
commitefb309d4cdb2f4c3926b0550d9dc1661c1e4a091 (patch)
treeaee8bfabdaf7ecf20d0ad54f97df9f3bb1ca840e /toys/other
parentd3a435e53c94ec25b4ae5fa2614f49ef8884e08a (diff)
downloadtoybox-efb309d4cdb2f4c3926b0550d9dc1661c1e4a091.tar.gz
Make scan_key() specify timeout in miliseconds, split out terminal_probesize(),
add function key definitions and shift/ctrl/alt cursor keys.
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/hexedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/hexedit.c b/toys/other/hexedit.c
index c45ef1ca..3c362dbd 100644
--- a/toys/other/hexedit.c
+++ b/toys/other/hexedit.c
@@ -176,7 +176,7 @@ void hexedit_main(void)
xflush();
// Wait for next key
- key = scan_key(keybuf, 1);
+ key = scan_key(keybuf, -1);
// Exit for q, ctrl-c, ctrl-d, escape, or EOF
if (key==-1 || key==3 || key==4 || key==27 || key=='q') break;
highlight(x, y, 2);