diff options
author | nicolargo <nicolas@nicolargo.com> | 2023-11-04 09:18:19 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2023-11-04 09:18:19 +0100 |
commit | 081beba52a1721348c0dd68b3462ded67d1f3970 (patch) | |
tree | 6921cde5b1debea9388078a91dfb8eb4d961fd44 | |
parent | e3d40e9577d5867af48ddc9280e9f3bcf6dda5ba (diff) |
Add debug message for term name
-rw-r--r-- | glances/outputs/glances_curses.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glances/outputs/glances_curses.py b/glances/outputs/glances_curses.py index 701640ba..f5ba10ad 100644 --- a/glances/outputs/glances_curses.py +++ b/glances/outputs/glances_curses.py @@ -158,6 +158,8 @@ class _GlancesCurses(object): if not self.screen: logger.critical("Cannot init the curses library.\n") sys.exit(1) + else: + logger.debug("Curses library initialized with term: {}".format(curses.longname())) except Exception as e: if args.export: logger.info("Cannot init the curses library, quiet mode on and export.") @@ -1272,7 +1274,7 @@ class _GlancesCurses(object): def wait(self, delay=100): """Wait delay in ms""" - curses.napms(100) + curses.napms(delay) def get_stats_display_width(self, curse_msg, without_option=False): """Return the width of the formatted curses message.""" |