I am currently trying to write a script that uses expect to logon to SSH. Logging on to a server every prompt appears as [user@host]~/directory$
when I use a xterm color terminal. However, if I read the output from SSH directly with expect I see the following <ESC>]0;user@host:~/directory[user@host]~/directory$
. Using export PS1="#-->"
changes the result to <ESC>]0;user@host:~/directory#-->
.
My question is: What does the sequence <ESC>]0;
do? And which class of terminals does it belong to? I could not find it for neither VT52 nor VT100.