Add shell_color.sh a tiny script to show how to use color with a shell
(classic sh).
This commit is contained in:
parent
63bc985178
commit
17d0b679f9
13
shell_color.sh
Executable file
13
shell_color.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
for attr in 0 1 4 5 7 ; do
|
||||
echo "----------------------------------------------------------------"
|
||||
printf "\t\t- ESC[%s;Foreground;Background -\n" $attr
|
||||
for fore in 30 31 32 33 34 35 36 37; do
|
||||
for back in 40 41 42 43 44 45 46 47; do
|
||||
printf '\033[%s;%s;%sm %02s;%02s ' $attr $fore $back $fore $back
|
||||
done
|
||||
printf '\033[0m\n'
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user