Dear Terminal: 💻 Writing a bash script to print ANSI color code chart in Termux (in under 3 Min🔥)

Опубликовано: 25 Октябрь 2024
на канале: chameleonhash
117
4

Writing a letter to my long lost terminal friend to help me with a bash script to print ANSI color codes in Termux so I can modify $PS1 prompt properly.

for x in {0..8}; do for i in {30..37}; do for a in {40..47}; do echo -ne "\e[$x;$i;$a""m\\\e[$x;$i;$a""m\e[0;37;40m "; done; echo; done; done; echo ""

#termux #linux #bash #script #dev #colors #chart #programming #python #shell #terminal #fun #fire #devops #termuxcommands #tutorial #howto #digital #laptop #android #windows #emulator #virtualmachine #cursor #cell