From 8c953b1bfef3c6ebee7c537c2c2f144807d0311a Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 26 Jun 2011 12:58:50 +0200 Subject: [PATCH] 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. --- doc/tinc.texi | 2 +- doc/tincctl.8.in | 2 +- src/top.c | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) 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; -- 2.20.1