Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/4-stable/tests/colortable16.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8437 - (show annotations) (download) (as text)
Fri Dec 13 03:11:16 2019 UTC (4 years, 3 months ago) by doda
File MIME type: text/x-sh
File size: 689 byte(s)
Tera Term 4.xx メンテナンス用ブランチを作成

1 #!/bin/bash
2
3 # prints a color table of 8bg * 8fg * 2 states (regular/bold)
4 echo
5 echo Table for 16-color terminal escape sequences.
6 echo Replace ESC with \\033 in bash.
7 echo
8 echo "Background | Foreground colors"
9 echo "---------------------------------------------------------------------"
10 for((bg=40;bg<=47;bg++)); do
11 for((bold=0;bold<=1;bold++)) do
12 echo -en "\033[0m"" ESC[${bg}m | "
13 for((fg=30;fg<=37;fg++)); do
14 if [ $bold == "0" ]; then
15 echo -en "\033[${bg}m\033[${fg}m [${fg}m "
16 else
17 echo -en "\033[${bg}m\033[1;${fg}m [1;${fg}m"
18 fi
19 done
20 echo -e "\033[0m"
21 done
22 echo "--------------------------------------------------------------------- "
23 done
24
25 echo
26 echo

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26