Commit 62d1b6cc authored by Stefan Raspl's avatar Stefan Raspl Committed by Paolo Bonzini

tools/kvm_stat: show cursor in selection screens

Show the cursor in the interactive screens to specify pid, filter or guest
name as an orientation for the user.
Signed-off-by: default avatarStefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 099a2dfc
...@@ -1148,13 +1148,19 @@ class Tui(object): ...@@ -1148,13 +1148,19 @@ class Tui(object):
self.refresh_header(0) self.refresh_header(0)
self.update_pid(0) self.update_pid(0)
if char == 'f': if char == 'f':
curses.curs_set(1)
self.show_filter_selection() self.show_filter_selection()
curses.curs_set(0)
sleeptime = DELAY_INITIAL sleeptime = DELAY_INITIAL
if char == 'g': if char == 'g':
curses.curs_set(1)
self.show_vm_selection_by_guest_name() self.show_vm_selection_by_guest_name()
curses.curs_set(0)
sleeptime = DELAY_INITIAL sleeptime = DELAY_INITIAL
if char == 'p': if char == 'p':
curses.curs_set(1)
self.show_vm_selection_by_pid() self.show_vm_selection_by_pid()
curses.curs_set(0)
sleeptime = DELAY_INITIAL sleeptime = DELAY_INITIAL
if char == 'r': if char == 'r':
self.stats.reset() self.stats.reset()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment