From 93cbe72521d7033bcb54c5fef377d07357e0e41f Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Fri, 2 Apr 2021 09:03:02 +0800 Subject: [PATCH] cephfs-top: set the cursor to be invisible Signed-off-by: Xiubo Li --- src/tools/cephfs/top/cephfs-top | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tools/cephfs/top/cephfs-top b/src/tools/cephfs/top/cephfs-top index a4ed0465a89..2e35adaabcc 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): -- 2.39.5