Help! Somehow my terminal looks like this:
It's nearly impossible to read the text. How can I fix it without exiting the terminal?
Help! Somehow my terminal looks like this:
It's nearly impossible to read the text. How can I fix it without exiting the terminal?
The likely cause of this problem are ANSI Escape Codes. These allow scripts to change the foreground and background color of the terminal. You can even mimic the colors of the screenshot above by running the following command:
To reset the terminal colors, use the following command:
According to the manpage:
This should restore your terminal to its original colors.
You can try this command also.It will reset your terminal color.
If you find your terminal in a state that none of
reset
,tput init
, nortput sgr0
can fix, trytput setaf 7 && tput setab 0
to force the text to white on black.