mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Add next/previous key bindings to XenMon curses mode.
Signed-off-by: Diwaker Gupta <dgupta@cs.ucsd.edu>
This commit is contained in:
1 parent
bcdecd7942
commit
6dab2f670d
1 file changed
+6
@@ -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()
|
||||
|
||||