From owner-freebsd-questions Tue Jan 30 2:35:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from stup5.cei.gov.cn (unknown [203.207.119.7]) by hub.freebsd.org (Postfix) with ESMTP id AA9B237B6C0 for ; Tue, 30 Jan 2001 02:34:54 -0800 (PST) Received: from WPH-NOTEBOOK ([203.207.229.119]) by stup5.cei.gov.cn (8.9.3/8.9.3) with ESMTP id SAA14846 for ; Tue, 30 Jan 2001 18:36:03 +0800 (CST) 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: Subject: xterm title bar and bash prompt Message-ID: X-X-Sender: peihanw@imap.777.net.cn MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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