From 1e041894a125db58e58383cc1dcb177cad8cc95c Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Thu, 22 May 2008 21:45:55 +0200 Subject: [PATCH] Safer color terminal handling --- iotop/ui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iotop/ui.py b/iotop/ui.py index 335f70b..a28c0f9 100644 --- a/iotop/ui.py +++ b/iotop/ui.py @@ -69,9 +69,9 @@ class IOTopUI(object): if not self.options.batch: self.win = win self.resize() - curses.use_default_colors() - curses.start_color() try: + curses.use_default_colors() + curses.start_color() curses.curs_set(0) except curses.error: # This call can fail with misconfigured terminals, for example -- 2.11.4.GIT