From: Xiubo Li Date: Fri, 2 Apr 2021 01:03:02 +0000 (+0800) Subject: cephfs-top: set the cursor to be invisible X-Git-Tag: v17.1.0~2240^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40539%2Fhead;p=ceph.git cephfs-top: set the cursor to be invisible Signed-off-by: Xiubo Li --- diff --git a/src/tools/cephfs/top/cephfs-top b/src/tools/cephfs/top/cephfs-top index a4ed0465a896..2e35adaabcc4 100755 --- a/src/tools/cephfs/top/cephfs-top +++ b/src/tools/cephfs/top/cephfs-top @@ -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):