add text in colors

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-05-07 00:08:11 +02:00
commit e398a50337
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
4 changed files with 38 additions and 7 deletions

View file

@ -1,5 +1,11 @@
#!/bin/bash
. ./lib/vpc.sh
export TERM=xterm-256color
delete_vpc "${1}"
for i in {0..255}; do
echo -e "\033[38;5;${i}m$i\t"
if (( ($i + 1) % 10 == 0 )); then echo; fi
done
echo -e "\e[0m"
printf "\033[38;5;208mTexte en orange (code 208)\033[0m\n"