summaryrefslogtreecommitdiffstats
path: root/tools/kvm/kvm_stat
diff options
context:
space:
mode:
authorStefan Raspl <raspl@linux.vnet.ibm.com>2017-06-07 21:08:34 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-06-08 18:17:06 +0200
commit62d1b6cc24d0dedde89e6a39aae1711270aee1c9 (patch)
tree5a380544e2534550c65b85d1298b7e69c497bae2 /tools/kvm/kvm_stat
parenttools/kvm_stat: move functions to corresponding classes (diff)
downloadlinux-62d1b6cc24d0dedde89e6a39aae1711270aee1c9.tar.xz
linux-62d1b6cc24d0dedde89e6a39aae1711270aee1c9.zip
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>
Diffstat (limited to 'tools/kvm/kvm_stat')
-rwxr-xr-xtools/kvm/kvm_stat/kvm_stat6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index f81ed208307f..53dcd406e9d6 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -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()