提交 a0b4e6a0 编写于 作者: S Stefan Raspl 提交者: Paolo Bonzini

tools/kvm_stat: hide cursor

When running kvm_stat in interactive mode, the cursor appears at the lower
left corner, which looks a bit distracting.
This patch hides the cursor by turning it invisible.
Signed-off-by: NStefan Raspl <raspl@linux.vnet.ibm.com>
Reviewed-By: NSascha Silbe <silbe@linux.vnet.ibm.com>
Reviewed-by: NMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Signed-off-by: NRadim Krčmář <rkrcmar@redhat.com>
上级 2beb6dad
......@@ -812,6 +812,13 @@ class Tui(object):
except:
pass
# Hide cursor in extra statement as some monochrome terminals
# might support hiding but not colors.
try:
curses.curs_set(0)
except curses.error:
pass
curses.use_default_colors()
return self
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册