diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-06 23:47:53 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-03-06 23:47:53 +0100 |
commit | 6dab2f670d4310fcdbadf0f82d502dc125636bff (patch) | |
tree | 1cb9d7394875953f1171633c64f865bedd987114 /tools/xenmon/xenmon.py | |
parent | bcdecd7942f0ee03707c6614f74754e15e2fbac3 (diff) | |
download | xen-6dab2f670d4310fcdbadf0f82d502dc125636bff.tar.gz xen-6dab2f670d4310fcdbadf0f82d502dc125636bff.tar.bz2 xen-6dab2f670d4310fcdbadf0f82d502dc125636bff.zip |
Add next/previous key bindings to XenMon curses mode.
Signed-off-by: Diwaker Gupta <dgupta@cs.ucsd.edu>
Diffstat (limited to 'tools/xenmon/xenmon.py')
-rw-r--r-- | tools/xenmon/xenmon.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/xenmon/xenmon.py b/tools/xenmon/xenmon.py index a95f126a23..366c5638de 100644 --- a/tools/xenmon/xenmon.py +++ b/tools/xenmon/xenmon.py @@ -452,6 +452,12 @@ def show_livestats(): if c == ord('c'): cpu = (cpu + 1) % ncpu + # n/p = cycle to the next/previous CPU + if c == ord('n'): + cpu = (cpu + 1) % ncpu + if c == ord('p'): + cpu = (cpu - 1) % ncpu + stdscr.erase() _c.nocbreak() |