I'm running Windows Subsystem for Linux and the color in Windows console is bad. I like the color palette in Ubuntu 16.04 very much. I've already known how to change the colors in a Windows console, and all I need is the colors from Ubuntu terminal. I use 16.04 with its default desktop environment, ubuntu-unity. What's the colors' RGB values in the default terminal? Foreground colors and background colors.
echo -e "\e[30;1mA\e[31;1mB\e[32;1mC\e[33;1mD\e[34;1mE\e[35;1mF\e[36;1mG\e[37;1mH"
Open the Ubuntu default terminal, right-click it's title bar and select Always On Top to keep it easily accessible for a screenshot. Then open GIMP. You can install GIMP by typing this into a terminal: sudo apt install gimp
In GIMP, go to File->Create->Screenshot
Select Take a screenshot of a single window and include window decoration
Set the Delay to 2-5 seconds
Click the Snap button.
After the Delay time, your mouse pointer will become a Plus-Sign/Cross. Click the Terminal window with this cross.
A screenshot of the window will then open up in GIMP.
You can then use the color picker tool to click on any color in the screenshot, which sets the foreground color. You will see thee foreground color box change color as you click different colors. You can then click on the foreground color rectangle and it will open a window with your RGB values for that color.
If you are having a hard time picking the color of the fonts, you can zoom in and out in GIMP the + and - keys, or you can do the usual CRTL+mouse-wheel up/down.
The terminal background color is: R=48, G=10, B=36
The terminal white font is: R=255, G=255, B=255
According to Oracle, these are the default RGB values for terminals that support 16 colors:
But the Ubuntu color map is slightly different:
You can change these default colors by putting something like this in your
~/.bashrc
file (with P0 to PF being the colors, and the rest of it is RGB in hex):