My coworker has the following in the
~/.bash_profile of many of our servers:
echo -e "\033]50;SetProfile=Production\a"
The text doesn't seem to matter, since this also works:
echo -e "\033]50;ANY_TEXT\a"
But no text doesn't work; the
\a is also required.
This causes his terminal in OSX to change profiles (different colours, etc.); but in my xterm, it changes the font to huge; which I can't seem to reset.
I have tried to reset this with:
- Setting VT fonts with shift+right click
- Do "soft reset" and "full reset" with shift+middle click
Sending of various escape codes & commands:
$ echo -e "\033c" # Reset terminal, no effect $ echo -e "\033[0;m" # Reset attributes, no effect $ tput sgr0 # No effect $ tput reset # No effect
- Why does this work on xterm & what exactly does it do? Code 50 is listed as "Reserved"?
- How do I reset this?