I want to list all colors that I can use in bash console. And after it I want to set my prompt to be bold and orange like color. I'm using this to do listing color codes for me:
for code in {0..255}; do echo -e "\e[38;05;${code}m $code: Test"; done
But the question is how to make it bold and keep colors?
I looked for some advice about making it bold here: http://misc.flogisoft.com/bash/tip_colors_and_formatting but I couldn't found any code that combines bold and one of 256 colors.
1;
in it:\e[1;38;05;${code}m
. Better to usetput setaf "$code"; tput bold
.\e[38;05;44m
or\e[1;31m
. Does the order of codes between semicolons matter? Your answer is correct. Please write reply and I will accept it. Thx.