-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathgrml_colors
37 lines (33 loc) · 1009 Bytes
/
grml_colors
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Filename: grml_colors
# Purpose: color definition file
# Authors: (c) Michael Prokop <[email protected]>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
################################################################################
# don't use highlighed colors under systemd to match its style
if [ "$(cat /proc/1/comm 2>/dev/null)" = "systemd" ] ; then
HIGHLIGHT=0
else
HIGHLIGHT=1
fi
# ANSI COLORS
CRE="[K"
NORMAL="[0;39m"
# RED: Failure or error message
RED="[${HIGHLIGHT};31m"
# GREEN: Success message
GREEN="[${HIGHLIGHT};32m"
# YELLOW: Descriptions
YELLOW="[${HIGHLIGHT};33m"
# BLUE: System messages
BLUE="[${HIGHLIGHT};34m"
# MAGENTA: Found devices or drivers
MAGENTA="[${HIGHLIGHT};35m"
# CYAN: Questions
CYAN="[${HIGHLIGHT};36m"
# BOLD WHITE: Hint
WHITE="[${HIGHLIGHT};37m"
# don't expose unneeded local variables
unset HIGHLIGHT
## END OF FILE #################################################################