Commit a0b4e6a0 authored by Stefan Raspl's avatar Stefan Raspl Committed by 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: default avatarStefan Raspl <raspl@linux.vnet.ibm.com>
Reviewed-By: default avatarSascha Silbe <silbe@linux.vnet.ibm.com>
Reviewed-by: default avatarMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 2beb6dad
...@@ -812,6 +812,13 @@ class Tui(object): ...@@ -812,6 +812,13 @@ class Tui(object):
except: except:
pass 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() curses.use_default_colors()
return self return self
......
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