You are not logged in.

#1 2023-04-07 20:59:15

HydroDiOxide
Member
Registered: 2007-10-06
Posts: 99

command to show the list of 256 colours available in terminal

The other day I bumped into a command to list the colours available in my terminal. I since then reinstalled (toying with different distro's) and I just can't remind or find that command. It was a command and if I remember correctly it took one option after which it gave a long list of the colour numbers in their respective colours. Something like this, but then a long scrolling list:

for COLOR in {1..255}; do echo -en "\e[38;5;${COLOR}m${COLOR} "; done; echo;

Can anyone suggest which command it might have been... so annoying I forgot...

Last edited by HydroDiOxide (2023-04-07 20:59:43)


"Overspecialize and you breed in weakness..." Major Motoko Kusanagi

Offline

#2 2023-04-07 21:08:03

dogknowsnx
Member
Registered: 2021-04-12
Posts: 648

Re: command to show the list of 256 colours available in terminal


RI - Rest your Eyes and Self

"We are eternal, all this pain is an illusion" - Maynard James Keenan

Offline

#3 2023-04-07 21:10:03

HydroDiOxide
Member
Registered: 2007-10-06
Posts: 99

Re: command to show the list of 256 colours available in terminal

You're a star! spectrum_ls it was! Cheers... now I can sleep peacefully.

Last edited by HydroDiOxide (2023-04-08 07:29:37)


"Overspecialize and you breed in weakness..." Major Motoko Kusanagi

Offline

Board footer

Powered by FluxBB