Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2005 08:30:41 -0400
From:      Michael Johnson <ahze@ahze.net>
To:        Tom McLaughlin <tmclaugh@sdf.lonestar.org>
Cc:        gnome@freebsd.org
Subject:   Re: gnome-terminal and FreeBSD's vi.
Message-ID:  <42679CF1.9000506@ahze.net>
In-Reply-To: <1114086510.15465.101.camel@compass.straycat.dhs.org>
References:  <1114059152.15465.91.camel@compass.straycat.dhs.org> <42673C8A.2040603@FreeBSD.org> <1114086510.15465.101.camel@compass.straycat.dhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3F09B104A23011FF12B7EE73
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Tom McLaughlin wrote:
> On Thu, 2005-04-21 at 01:39 -0400, Adam Weinberger wrote:
> 
>>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
>>
> 
> 
> I've fiddled in the gome-terminal profile and it's not the Backspace and
> Delete bindings but the values produced that are the problem.  Even if I
> switch gnome-terminal back to the defaults I still have the same
> problem, just that then Backspace produces the ^? on screen.  The
> problem is with handling ASCII DEL itself in vi.
> 

Set gnome-terminal to "login" .. it's in preferences somewhere.



--------------enig3F09B104A23011FF12B7EE73
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCZ5z1n4uqfTwEb9YRAmX1AJ4nVPN10FaFNlFK38Om5qmqFKpbRwCcCz6x
fgnpDz7LJhrjrE1A3ZMCsL0=
=e82U
-----END PGP SIGNATURE-----

--------------enig3F09B104A23011FF12B7EE73--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42679CF1.9000506>