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.
This commit is contained in:
Guus Sliepen 2011-06-26 12:58:50 +02:00
parent 27e6a89b15
commit 8c953b1bfe
3 changed files with 2 additions and 3 deletions

View 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

View 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

View file

@ -305,7 +305,6 @@ void top(int fd) {
scale = 1e-9;
break;
case 'q':
case 27:
case KEY_BREAK:
running = false;
break;