mirror of
https://github.com/gryf/wicd.git
synced 2025-12-22 05:48:03 +01:00
Use the ANSI escape sequences to print colors instead of fetching them using tput(1) in wicd-curses.
This commit is contained in:
@@ -1051,10 +1051,9 @@ if __name__ == '__main__':
|
|||||||
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REV,daemon.Hello()))
|
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" % (CURSES_REV,daemon.Hello()))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if "DBus.Error.AccessDenied" in e.get_dbus_name():
|
if "DBus.Error.AccessDenied" in e.get_dbus_name():
|
||||||
print ""
|
print "\
|
||||||
system("\
|
|
||||||
echo ERROR: wicd-curses was denied access to the wicd daemon, please check that \
|
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)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user