]> granicus.if.org Git - procps-ng/commitdiff
top: allow exit from 2nd level help via <Esc> key
authorJim Warner <james.warner@comcast.net>
Mon, 22 Oct 2012 02:21:21 +0000 (21:21 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 26 Oct 2012 07:58:42 +0000 (18:58 +1100)
Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 327db6cf34c2a3dacf20eb47dd6639cdc9288656..debe6cdd89fc1787d380aa59b7c2ad5cf30860a6 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -3079,7 +3079,7 @@ static void help_view (void) {
             , Winstk[2].rc.winname, Winstk[3].rc.winname));
          if (1 > chin(0, &ch, 1)) break;
          w = win_select(ch);
-      } while (kbd_ENTER != ch);
+      } while (kbd_ENTER != ch && kbd_ESC != ch);
    }
 
    putp(Cap_curs_norm);