ia64/xen-unstable

changeset 9178:b0d8b38681ff

Add next/previous key bindings to XenMon curses mode.

Signed-off-by: Diwaker Gupta <dgupta@cs.ucsd.edu>
author kaf24@firebug.cl.cam.ac.uk
date Mon Mar 06 23:47:53 2006 +0100 (2006-03-06)
parents 0ad422291688
children 57a905038907
files tools/xenmon/xenmon.py
line diff
     1.1 --- a/tools/xenmon/xenmon.py	Mon Mar 06 23:47:14 2006 +0100
     1.2 +++ b/tools/xenmon/xenmon.py	Mon Mar 06 23:47:53 2006 +0100
     1.3 @@ -452,6 +452,12 @@ def show_livestats():
     1.4          if c == ord('c'):
     1.5              cpu = (cpu + 1) % ncpu
     1.6  
     1.7 +        # n/p = cycle to the next/previous CPU
     1.8 +        if c == ord('n'):
     1.9 +            cpu = (cpu + 1) % ncpu
    1.10 +        if c == ord('p'):
    1.11 +            cpu = (cpu - 1) % ncpu
    1.12 +
    1.13          stdscr.erase()
    1.14  
    1.15      _c.nocbreak()