From owner-freebsd-gnome@FreeBSD.ORG Thu Apr 21 05:34:38 2005 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4243D16A4CE for ; Thu, 21 Apr 2005 05:34:38 +0000 (GMT) Received: from connectmail.carleton.ca (connectmail.carleton.ca [134.117.2.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A0D643D41 for ; Thu, 21 Apr 2005 05:34:38 +0000 (GMT) (envelope-from adamw@FreeBSD.org) Received: from [134.117.130.181] (ibook.nt.carleton.ca [134.117.130.181]) by connectmail.carleton.ca (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTPSA id <0IFA007T57HQOB@connectmail.carleton.ca> for gnome@freebsd.org; Thu, 21 Apr 2005 01:34:38 -0400 (EDT) Date: Thu, 21 Apr 2005 01:39:22 -0400 From: Adam Weinberger In-reply-to: <1114059152.15465.91.camel@compass.straycat.dhs.org> To: Tom McLaughlin Message-id: <42673C8A.2040603@FreeBSD.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) References: <1114059152.15465.91.camel@compass.straycat.dhs.org> cc: gnome@freebsd.org Subject: Re: gnome-terminal and FreeBSD's vi. X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 05:34:38 -0000 Tom McLaughlin wrote: > Just wondering, has anyone ever gotten FreeBSD's own vi to work well > with gnome-terminal? I've found that unless $TERM is set to cons25 then > vi has problems handling ASCII DEL (^?) sequences correctly. > > Right now in the gnome-terminal profile I have Backspace generating a > Ctrl+H and Delete generating an ASCII DEL. That's standard xterm vt100 > emulation and matches cons25 terminal behavior. (In case you're > wondering why I changed the default behavior it's because vi doesn't > handle the ^[[3~ escape sequence very well either.) When using vi in > insert mode, delete is generating a ^? on screen each time it is > pressed. In other modes I get an error stating "^? isn't a vi command". > > I've already fixed vim so delete and backspace behave the same under > cons25 and xterm (the 'fixdel' option added to my .vimrc took care of > the problem very simply after lots of googling) and I'd like to fix vi > now. Also, if somebody could tell me how to get Backspace to actually > remove characters while in insert mode in vi that would be awesome too. > That has annoyed me on all the BSDs. Thanks. > > Tom > You can often fix this in your shell. Furthermore, IIRC gnome-terminal has a setting to control whether backspace gives ^? or ^H. # Adam -- Adam Weinberger adamw@magnesium.net || adamw@FreeBSD.org adamw@vectors.cx || adamw@gnome.org http://www.vectors.cx