[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Add next/previous key bindings to XenMon curses mode.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID b0d8b38681ff70a7d0fa02eae8f7561c1d28c08c
# Parent  0ad422291688b5b3d497a0cedfb2be045589c721
Add next/previous key bindings to XenMon curses mode.

Signed-off-by: Diwaker Gupta <dgupta@xxxxxxxxxxx>

diff -r 0ad422291688 -r b0d8b38681ff tools/xenmon/xenmon.py
--- a/tools/xenmon/xenmon.py    Mon Mar  6 22:47:14 2006
+++ b/tools/xenmon/xenmon.py    Mon Mar  6 22:47:53 2006
@@ -452,6 +452,12 @@
         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()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.