From 5eee87cf80b400f57bd4fa290bb8abda77f5c8e0 Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Fri, 19 Jun 2009 20:07:10 -0400 Subject: [PATCH] Use the ANSI escape sequences to print colors instead of fetching them using tput(1) in wicd-curses. --- curses/wicd-curses.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index b06202a..691b402 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -1051,10 +1051,9 @@ if __name__ == '__main__': parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REV,daemon.Hello())) except Exception as e: if "DBus.Error.AccessDenied" in e.get_dbus_name(): - print "" - system("\ + print "\ echo ERROR: wicd-curses was denied access to the wicd daemon, please check that \ -your user is in the group \\'$(tput bold)$(tput setaf 4)"+ wpath.wicd_group+"$(tput sgr0)\\'.") +your user is in the group \'\033[1;34m"+ wpath.wicd_group+"\033[0m\'." sys.exit(1) else: raise