From owner-freebsd-questions Tue Dec 8 14:18:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA19304 for freebsd-questions-outgoing; Tue, 8 Dec 1998 14:13:54 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA19295 for ; Tue, 8 Dec 1998 14:13:50 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id IAA03126; Wed, 9 Dec 1998 08:43:40 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id IAA30565; Wed, 9 Dec 1998 08:43:28 +1030 (CST) Message-ID: <19981209084328.M12688@freebie.lemis.com> Date: Wed, 9 Dec 1998 08:43:28 +1030 From: Greg Lehey To: bjc23@hermes.cam.ac.uk, "Jason C. Wells" Cc: questions@FreeBSD.ORG Subject: Re: Bash bug when typing long lines? References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Ben J. Cohen on Tue, Dec 08, 1998 at 08:56:15PM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 8 December 1998 at 20:56:15 +0000, Ben J. Cohen wrote: >>> There seems to be a glitch in bash when typing lines longer than one >>> screen-width. >>> When you do this, the cursor wraps back to the start of the line, but does >>> not go down a line, so you overtype the beginning of the same line. >> >> I don't think it overwrites the line. It just shifts the stuff you have >> written to the left so you can read the tail end. Use the left arrow to >> back up and see if this is the case. > > No, this doesn't seem to be the case; in fact, since if you do that the > line that was overwritten appears on the preivous line up, it seems to > confirm that this is wrong. Jason is describing one way that bash can be set up. It sounds like he misunderstood your description. > Is it likely that I have set something up wrong? Yes. I've been using bash, xterm and BSD together for nearly 9 years, and it has never done this to me. > I think it was the default configuration, though. > > Note that this still happens when I run screen under xterm with bash; does > this suggest that the problem is with xterm (or my xterm definition)? I'd guess that it's the termcap definition, but that's a guess. I've put two files on ftp://ftp.lemis.com/pub: bash is the version of bash I'm using (3.0). TERM is a script which sets the termcap to what I'm using Try bash first; if that doesn't work, try . TERM It's important to use ., because you want to have the effects in the shell you're running. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message