-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorlist
executable file
·42 lines (36 loc) · 1.21 KB
/
colorlist
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
37
38
39
40
41
42
#!/bin/bash
#
# @author Zeus Intuivo <[email protected]>
#
#
# ref http://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-ps1-prompt
color=1;
while [ $color -lt 3 ]; do
count=1;
echo "ALO"
while [ $count -lt 3 ]; do
echo "HOLA"
break;
echo "WELCOME"
((count++));
done
((color++));
done
#exit 0;
color=16;
while [ $color -lt 256 ]; do
echo -e "$color: \\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m echo -e \"\\\\033[38;5;${color}m FOREGROUND \"; echo -e \"\\\\033[48;5;${color}m BACKGROUND \""
((color++));
done
color=1;
echo " ##################### tput #################### "
echo " ##################### tput #################### "
echo " ##################### tput #################### "
echo " ##################### tput #################### "
echo " ##################### tput #################### "
echo " ##################### tput #################### "
while [ $color -lt 256 ]; do
thiscolor=$(tput setaf ${color})
echo -e "$color: ${thiscolor} SIMPLE \\033[38;5;${color}mhello\\033[48;5;${color}mworld\\033[0m echo -e \"\\\\033[38;5;${color}m FOREGROUND \"; echo -e \"\\\\033[48;5;${color}m BACKGROUND \""
((color++));
done