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:
parent
27e6a89b15
commit
8c953b1bfe
3 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -305,7 +305,6 @@ void top(int fd) {
|
|||
scale = 1e-9;
|
||||
break;
|
||||
case 'q':
|
||||
case 27:
|
||||
case KEY_BREAK:
|
||||
running = false;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue