xterm title after quittin ssh sessions
Hello, I have Slack10.1 with fluxbox0.9.13. I use xterm and when I logon via ssh to a remote machine the xterm title becomes the user and the host of that machine, but when I exit the ssh session, the xterm title remains. I want the normal title of xterm before the ssh session.
Anyone can't help? |
It seems that the remote site that you connect to sets your xterm title. You can set it with something like:
Code:
echo -ne "\033];xterm\007"' Code:
PROMPT_COMMAND='echo -ne "\033];xterm\007"' Code:
PROMPT_COMMAND='echo -ne "\033];Terminal (`temp=$(tty) ; echo ${temp:5}`) - `pwd`\007"' Using PROMPT_COMMAND also ensures that the titlebar gets automatically reset when you exit ssh because it gets run every time that bash displays your prompt. |
All times are GMT -5. The time now is 12:07 AM. |