Skip to content

Commit

Permalink
Reserve colors in the 256color range to terminals supporting it
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Sep 26, 2017
1 parent ee9da81 commit a37ef0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rcColor.py
Expand Up @@ -36,7 +36,7 @@ class color:
LIGHTRED = '\033[091m'
LIGHTGREEN = '\033[092m'
YELLOW = '\033[093m'
LIGHTBLUE = '\033[038;5;243m'
LIGHTBLUE = '\033[094m'
LIGHTPURPLE = '\033[095m'
LIGHTCYAN = '\033[096m'
WHITE = '\033[097m'
Expand All @@ -55,6 +55,9 @@ class color:
E_BGODD = '\033[48;2;240;240;205m'
E_BGCYAN = '\033[48;2;125;205;205m'

if os.environ.get("TERM") in ("screen-256color", "xterm-256color", "screen-256color-bce"):
color.LIGHTBLUE = '\033[038;5;243m'

STATUS_COLOR = {
"up": color.GREEN,
"stdby up": color.GREEN,
Expand Down

0 comments on commit a37ef0d

Please sign in to comment.