A causa provável desse problema é Códigos de escape ANSI . Eles permitem que os scripts alterem a cor do primeiro plano e do plano de fundo do terminal. Você pode até mesmo imitar as cores da imagem acima, executando o seguinte comando:
echo -e '\E[32;46m'
Para redefinir as cores do terminal, use o seguinte comando:
tput init
De acordo com a manpage:
init If the terminfo database is present and an entry for the user's terminal exists (see -Ttype, above), the following will occur: (1) if present, the terminal's initialization strings will be output as detailed in the terminfo(5) section on Tabs and Initialization, (2) any delays (e.g., newline) specified in the entry will be set in the tty driver, (3) tabs expansion will be turned on or off according to the specification in the entry, and (4) if tabs are not expanded, standard tabs will be set (every 8 spaces). If an entry does not contain the information needed for any of the four above activities, that activity will silently be skipped.
Isso deve restaurar seu terminal às cores originais.