提交 62d1b6cc 编写于 作者: S Stefan Raspl 提交者: 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: NStefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 099a2dfc
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册