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: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Stefan Raspl 2017-06-07 21:08:34 +02:00 committed by Paolo Bonzini
parent 099a2dfc67
commit 62d1b6cc24

View File

@ -1148,13 +1148,19 @@ class Tui(object):
self.refresh_header(0)
self.update_pid(0)
if char == 'f':
curses.curs_set(1)
self.show_filter_selection()
curses.curs_set(0)
sleeptime = DELAY_INITIAL
if char == 'g':
curses.curs_set(1)
self.show_vm_selection_by_guest_name()
curses.curs_set(0)
sleeptime = DELAY_INITIAL
if char == 'p':
curses.curs_set(1)
self.show_vm_selection_by_pid()
curses.curs_set(0)
sleeptime = DELAY_INITIAL
if char == 'r':
self.stats.reset()