]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-top: set the cursor to be invisible 41053/head
authorXiubo Li <xiubli@redhat.com>
Fri, 2 Apr 2021 01:03:02 +0000 (09:03 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 28 Apr 2021 03:23:42 +0000 (11:23 +0800)
Signed-off-by: Xiubo Li <xiubli@redhat.com>
src/tools/cephfs/top/cephfs-top

index b1a902343b1646eba5b2a06095ed57027791dc05..55f9e633d38fbf8edda363dd7e68d547f57d4a5f 100755 (executable)
@@ -148,6 +148,14 @@ class FSTop(object):
 
     def setup_curses(self, win):
         self.stdscr = win
+        curses.use_default_colors()
+        curses.start_color()
+        try:
+            curses.curs_set(0)
+        except curses.error:
+            # If the terminal do not support the visibility
+            # requested it will raise an exception
+            pass
         self.run_display()
 
     def verify_perf_stats_support(self):