MrSnowdenJr / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

Uses TERM=xterm-color but doesn't ignore xterm control sequences for setting title #284

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. SSH into a machine which sets PS1 to a value that includes control sequences 
to set the terminal title (very common in shell startup files).  For example:

case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;\u@\h: \w\a\]$PS1"
    ;;
esac

What is the expected output?
MobileTerminal should ignore everything between the ESC ] 0 and the \a.  the 
control sequences and the title between them.

What do you see instead?
MobileTerminal displays the title text, which in this case leads to two copies 
of the "user@host:/directory" text in the prompt.

What version of the product are you using? On what operating system?
MobileTerminal r520 on iOS 4.3.3

For more information on xterm's control sequences, see 
http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt ; however, the 
title-setting sequence represents the most common thing that will appear in 
shell startup files.

Original issue reported on code.google.com by j...@joshtriplett.org on 5 Jul 2011 at 4:44

GoogleCodeExporter commented 9 years ago
Thanks for all of the detail.

Original comment by allen.po...@gmail.com on 9 Jul 2011 at 4:36