From: Guus Sliepen Date: Sun, 26 Jun 2011 10:58:50 +0000 (+0200) Subject: Don't react to escape character in tincctl top. X-Git-Tag: import-tinc-1.1~464 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=8c953b1bfef3c6ebee7c537c2c2f144807d0311a;p=meshlink Don't react to escape character in tincctl top. Not only the ESC key generates an escape character, but many other keys do as well, such as arrow keys. --- diff --git a/doc/tinc.texi b/doc/tinc.texi index daf807b8..15704a1f 100644 --- a/doc/tinc.texi +++ b/doc/tinc.texi @@ -2026,7 +2026,7 @@ Show amount of traffic in megabytes. @item G Show amount of traffic in gigabytes. -@item q, ESC +@item q Quit. @end table diff --git a/doc/tincctl.8.in b/doc/tincctl.8.in index 6b550ae8..ef0584e1 100644 --- a/doc/tincctl.8.in +++ b/doc/tincctl.8.in @@ -159,7 +159,7 @@ Show amount of traffic in kilobytes. Show amount of traffic in megabytes. .It Ic G Show amount of traffic in gigabytes. -.It Ic q , ESC +.It Ic q Quit. .El .Sh BUGS diff --git a/src/top.c b/src/top.c index 5a9edb08..f14395e2 100644 --- a/src/top.c +++ b/src/top.c @@ -305,7 +305,6 @@ void top(int fd) { scale = 1e-9; break; case 'q': - case 27: case KEY_BREAK: running = false; break;