From efb309d4cdb2f4c3926b0550d9dc1661c1e4a091 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 7 Jan 2016 14:34:47 -0600 Subject: Make scan_key() specify timeout in miliseconds, split out terminal_probesize(), add function key definitions and shift/ctrl/alt cursor keys. --- toys/other/hexedit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/hexedit.c') 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); -- cgit v1.2.3