]> git.meshlink.io Git - meshlink/commitdiff
Don't react to escape character in tincctl top.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 26 Jun 2011 10:58:50 +0000 (12:58 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 26 Jun 2011 10:58:50 +0000 (12:58 +0200)
Not only the ESC key generates an escape character, but many other keys
do as well, such as arrow keys.

doc/tinc.texi
doc/tincctl.8.in
src/top.c

index daf807b8773ff82dd4b33661608db61b70395f36..15704a1fba303ce397d20831df107aa16174ba72 100644 (file)
@@ -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
index 6b550ae8eb36752f217762cd0c6065efdeaf7cf1..ef0584e1e8427d7c1085554c8b2efeaa75e092bb 100644 (file)
@@ -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
index 5a9edb0828a9e3d982fa01780fb96d6e72cbc601..f14395e23872a926eeee0da656cb5eebb7ceaae8 100644 (file)
--- 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;