i want to change the font color of everything i write in the linux terminals (eg the one accessible at ctrl+alt+f1) to green. my default tty font color is white, but i would like it to be green. i have tried
setterm -term linux -foreground green -clearbut this just changes the color of the cursor. i want to change the color of the font - so that it looks the same as the following xterm configuration:
xterm -foreground green 2 3 Answers
just needed to include the -store setting. the following does the trick perfectly:
setterm -foreground green -store add to
~/.bashrc
if [ "$TERM" = "linux" ]; then echo -en "\e]P0232323" #black echo -en "\e]P82B2B2B" #darkgrey echo -en "\e]P1D75F5F" #darkred echo -en "\e]P9E33636" #red echo -en "\e]P287AF5F" #darkgreen echo -en "\e]PA98E34D" #green echo -en "\e]P3D7AF87" #brown echo -en "\e]PBFFD75F" #yellow echo -en "\e]P48787AF" #darkblue echo -en "\e]PC7373C9" #blue echo -en "\e]P5BD53A5" #darkmagenta echo -en "\e]PDD633B2" #magenta echo -en "\e]P65FAFAF" #darkcyan echo -en "\e]PE44C9C9" #cyan echo -en "\e]P7E5E5E5" #lightgrey echo -en "\e]PFFFFFFF" #white clear #for background artifacting
fi 2 this command channges font colour>> tput setaf 4
this command changes background colour>> tput setab 2
change the no's to change colours 0=black 7=white
also set this cmd in alias to change colours in 2 letters
alias c1='tput setaf 4'
write these alias in .bashrc file to make them permanent.