top: standardize <Esc> key support with prompted input
In release 3.3.6, some commands were equipped with the concept of a 'default pid'. The initial implementation meant that the intuitive <Esc> key would not always be treated as one would expect under any well behaved UI. This patch ensures the expected <Esc> key behavior of: terminating user input while still making possible the necessary distinction between 'no input' & 'defaults'. Reference(s): http://www.freelists.org/post/procps/top-Escape-doesnt-abort-kill-command Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
committed by
Jaromir Capik
parent
fe37ad15cd
commit
bef6b0f025
@@ -1082,6 +1082,7 @@ depending on your progress:
|
||||
.nf
|
||||
1) at the pid prompt, type an invalid number
|
||||
2) at the signal prompt, type 0 (or any invalid signal)
|
||||
3) at any prompt, type <Esc>
|
||||
.fi
|
||||
|
||||
.TP 7
|
||||
@@ -1106,6 +1107,7 @@ depending on your progress:
|
||||
.nf
|
||||
1) at the pid prompt, type an invalid number
|
||||
2) at the nice prompt, type <Enter> with no input
|
||||
3) at any prompt, type <Esc>
|
||||
.fi
|
||||
|
||||
.TP 7
|
||||
|
||||
Reference in New Issue
Block a user