kolibrios-gitea/data/common/templates/shell_escape.sh

34 lines
3.5 KiB
Bash
Raw Normal View History

#SHS
echo Table for 16-color terminal escape sequences.
echo Replace ESC with \033 in bash.
echo Background | Foreground colors
echo ---------------------------------------------------------------------
echo  ESC[40m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[40m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[41m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[41m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[42m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[42m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[43m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[43m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[44m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[44m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[45m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[45m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[46m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[46m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------
echo  ESC[47m |  [30m  [31m  [32m  [33m  [34m  [35m  [36m  [37m 
echo  ESC[47m |  [1;30m [1;31m [1;32m [1;33m [1;34m [1;35m [1;36m [1;37m
echo ---------------------------------------------------------------------