From e691f75b81131d8b7328b99f598a56a677bccf15 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 13 Jun 2018 00:00:00 -0500 Subject: [PATCH] top: let's honor key on color mapping screen too Signed-off-by: Jim Warner --- top/top.c | 3 ++- top/top_nls.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/top/top.c b/top/top.c index 3681758f..f1ff8a89 100644 --- a/top/top.c +++ b/top/top.c @@ -4360,6 +4360,7 @@ signify_that: if (Frames_signal) goto signify_that; key = iokey(1); if (key < 1) goto signify_that; + if (key == kbd_ESC) break; switch (key) { case 'S': @@ -4418,7 +4419,7 @@ signify_that: capsmk(w); } while (key != kbdAPPLY && key != kbdABORT); - if (key == kbdABORT) wins_clrhlp(w, 0); + if (key == kbdABORT || key == kbd_ESC) wins_clrhlp(w, 0); #undef kbdABORT #undef kbdAPPLY diff --git a/top/top_nls.c b/top/top_nls.c index 6bf6fea8..c3238256 100644 --- a/top/top_nls.c +++ b/top/top_nls.c @@ -632,7 +632,7 @@ static void build_uniq_nlstab (void) { " 4~2 = blue, ~1 5~2 = magenta,~1 6~2 = cyan, ~1 7~2 = white\n" "\n" "3) Then use these keys when finished:\n" - " 'q' to abort changes to window '~1%s~2'\n" + " 'q' or to abort changes to window '~1%s~2'\n" " 'a' or 'w' to commit & change another, to commit and end "); /* Translation Hint: -- 2.40.0