linx255 wrote: ⤴Wed Apr 25, 2018 10:43 pmThanks!
I was thinking about this a little more. Talking about the output of a single command is one thing, but you can customize the console and output via the console GUI menu and the command prompt PS1. The GUI menu item might be under setting, preferences or profile. If output is hard to read, maybe increasing the font size will help. The command prompt can be set in your $HOME/.bashrc. If you search /etc/bash.bashrc for PS1 you should see some references to it. When you create a new user, files from /etc/skel are used. If you look at /etc/skel/.bashrc you'll also see a reference to PS1.
Please see the attached image and the web page
Bash/Prompt customization. There are additional links at the bottom of that page.
There's a good article on console colors
here. So if a particular command doesn't have a color option, you could always post process it within a script. You would just embed between the escape sequences:
echo -e '\e[1;3;31m Hello world \e[0m'
.
From the above web site. See the possibilities:
Code: Select all
#!/bin/bash
for fgbg in 38 48 ; do #Foreground/Background
for color in {0..256} ; do #Colors
#Display the color
echo -en "\e[${fgbg};5;${color}m ${color}\t\e[0m"
#Display 10 colors per lines
if [ $((($color + 1) % 10)) == 0 ] ; then
echo #New line
fi
done
echo #New line
done