Date: Tue, 30 Jan 2001 17:42:38 +0800 (=?ISO-8859-1?B?1tC5+rHq17zKsbzk?=) From: Wang Peihan <"peihanw@mx.cei.gov.cn"@mx.cei.gov.cn> To: <freebsd-questions@freebsd.org> Subject: xterm title bar and bash prompt Message-ID: <Pine.WNT.4.32.0101301717040.-302587@wph-notebook>
index | next in thread | raw e-mail
In my ~/.bashrc, there are sections like this
### begin ###
if [ $TERM = "xterm" -o $TERM = "xterm-color" -o $TERM = "vt100" ]; then
USER=`whoami`
export USER
HOST=`hostname`
export HOST
PS1='^[]2;${USER}@${HOST}:\w^G$ '
export PS1
fi
set -o vi
### end ###
So, the title bar of an xterm window looks like
"student@study.bbs.edu.cn:~/prog/cc/work".
It is cool, but a weird thing happens. The line wrap of bash did not work
properly any more. When typing a long command line, the input line is a
mess.
Is there any way to correct this?
(My system is 4.1 stable, bash 2.04)
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.WNT.4.32.0101301717040.-302587>
