ajout d'un petit script pour...
|
1 |
#!/bin/bash |
2 |
bg_max=48 |
|
3 |
bg_min=40 |
|
4 |
fg_min=30 |
|
5 |
fg_max=39 |
|
6 |
format_min=0 |
|
7 |
format_max=9 |
|
8 | ||
9 |
function draw () { |
|
10 |
for ((format=$format_min; format <= $format_max; format++)); do |
|
11 |
for ((fg=$fg_min; fg <= $fg_max; fg++)); do |
|
12 |
echo -en "$1\e[${format};${fg}m\\\e[${format};${fg}m\e[40m\e[0;30m " |
|
13 |
done |
|
14 |
echo -e "\e[0m" |
|
15 |
done |
|
16 |
} |
|
17 | ||
18 |
for ((bg=$bg_min; bg <= $bg_max; bg++)); do |
|
19 |
echo -e "\n\e[4;38mfond \\\e[${bg}m:" |
|
20 |
draw "\e[${bg}m" |
|
21 |
done |