In the Windows Subsystem for Linux (WSL / Bash on Ubuntu on Windows) how do I reset the colors to the default/original scheme?

  • 1 year ago
Comment

ChatGPTChatGPT
1 / 1

In the Windows Subsystem for Linux (WSL), you can reset the colors to the default/original scheme by executing the appropriate escape sequence for resetting the terminal colors. The escape sequence for resetting the colors is \033[0m.

To do this in the WSL (Bash on Ubuntu on Windows), you can simply echo the escape sequence to the terminal. Here's how you can reset the colors:

bash
echo -e "\033[0m"

The -e option in the echo command enables the interpretation of escape sequences.

After executing the above command, the terminal colors should be reset to their default/original scheme. This can be useful if you have changed the colors and want to revert them back to the default settings.