pcp
[Top] [All Lists]

[PATCH] pmatop.py: fix help keys

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: [PATCH] pmatop.py: fix help keys
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Mon, 18 Aug 2014 18:58:02 +0300
Delivered-to: pcp@xxxxxxxxxxx
Organization: Red Hat
Reply-to: myllynen@xxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
Hi,

a trivial fix for pmatop below.

>From 4453366c17583c125fed95b8e2fe2adaeb20f987 Mon Sep 17 00:00:00 2001
From: Marko Myllynen <myllynen@xxxxxxxxxx>
Date: Mon, 18 Aug 2014 16:51:07 +0300
Subject: [PATCH] pmatop.py: fix help keys

>From pmatop(1):

  Miscellaneous interactive commands:

    ?  Request for help information (also the key ’h’ can be pressed).
---
 src/pmatop/pmatop.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pmatop/pmatop.py b/src/pmatop/pmatop.py
index c52a6f2..3b4e9d2 100644
--- a/src/pmatop/pmatop.py
+++ b/src/pmatop/pmatop.py
@@ -882,7 +882,7 @@ def main (stdscr_p):
                     stdscr.timeout(-1)
                     # currently it just does "hit any key to continue"
                     char = stdscr.getch()
-                elif cmd == "h":
+                elif cmd == "h" or cmd == "?":
                     stdscr.clear ()
                     stdscr.move (0, 0)
                     stdscr.addstr ('\nOptions shown for active processes:\n')
-- 
1.7.1

-- 
Marko Myllynen

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] pmatop.py: fix help keys, Marko Myllynen <=