add text in colors
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
6b9c5e64b8
commit
e398a50337
4 changed files with 38 additions and 7 deletions
14
lib/colors.sh
Normal file
14
lib/colors.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
COLOR_RED="196"
|
||||
COLOR_ORANGE="208"
|
||||
COLOR_GREEN="154"
|
||||
COLOR_GREY="246"
|
||||
|
||||
function print_in_color {
|
||||
color="${1}"
|
||||
text="${2}"
|
||||
|
||||
echo -e "\033[38;5;${color}m${text}\e[0m"
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue