backspace-key and ^H when ssh -X remote.

2009-05-23 Thread Gary Kline
guys,

here's a bug with how the backspace key doesn't work across computers.
i'm not sure if there were troubles going from FBSD to FBSD, but there is
when i ssh from my ubuntu platform to my main desktop.  i do this to edit
files or for replying to mutt mail using vi.

going from ethos [ubuntu] to tao [fbsd] and using vi, the backspace key
is translated to \177 and is echoed as ^?.  it does not erase.  i have
to type 

% stty erase ^V [backspacekey]

to fix this problem. otherwise, to erase a character, i have to type a
control-H. it is exact the same problem going from fbsd to ubunto. 
has anybody seen this before?

tia,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.91a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: backspace-key and ^H when ssh -X remote.

2009-05-23 Thread Thomas Dickey
On Fri, May 22, 2009 at 11:04:05PM -0700, Gary Kline wrote:
 guys,
 
 here's a bug with how the backspace key doesn't work across computers.
 i'm not sure if there were troubles going from FBSD to FBSD, but there is
 when i ssh from my ubuntu platform to my main desktop.  i do this to edit
 files or for replying to mutt mail using vi.
 
 going from ethos [ubuntu] to tao [fbsd] and using vi, the backspace key
 is translated to \177 and is echoed as ^?.  it does not erase.  i have
 to type 
 
 % stty erase ^V [backspacekey]
 
 to fix this problem. otherwise, to erase a character, i have to type a
 control-H. it is exact the same problem going from fbsd to ubunto. 
 has anybody seen this before?

probably (outside of Linux and a few special cases such as Cygwin,
everyone else uses ^H for backspace - all of the BSD's and all
of the vendor Unix's).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpp0vuivOg8X.pgp
Description: PGP signature


Re: backspace-key and ^H when ssh -X remote.

2009-05-23 Thread Polytropon
On Sat, 23 May 2009 06:35:56 -0400, Thomas Dickey dic...@radix.net wrote:
 probably (outside of Linux and a few special cases such as Cygwin,
 everyone else uses ^H for backspace - all of the BSD's and all
 of the vendor Unix's).

As far as I know, ^? indicates the delete key... Maybe the
delete key does ^H in this setting?



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: backspace-key and ^H when ssh -X remote.

2009-05-23 Thread Thomas Dickey
On Sat, May 23, 2009 at 03:03:00PM +0200, Polytropon wrote:
 On Sat, 23 May 2009 06:35:56 -0400, Thomas Dickey dic...@radix.net wrote:
  probably (outside of Linux and a few special cases such as Cygwin,
  everyone else uses ^H for backspace - all of the BSD's and all
  of the vendor Unix's).
 
 As far as I know, ^? indicates the delete key... Maybe the
 delete key does ^H in this setting?

By uses ^H for backspace, I was referring to the terminal emulators
such as xterm which can be initialized to send either ^H or ^? for
the backspace key, as well as the console terminals which generally
send one or the other...

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpKRZb50F0PD.pgp
Description: PGP signature


Re: backspace-key and ^H when ssh -X remote.

2009-05-23 Thread Gary Kline
On Sat, May 23, 2009 at 12:25:50PM -0400, Thomas Dickey wrote:
 On Sat, May 23, 2009 at 03:03:00PM +0200, Polytropon wrote:
  On Sat, 23 May 2009 06:35:56 -0400, Thomas Dickey dic...@radix.net wrote:
   probably (outside of Linux and a few special cases such as Cygwin,
   everyone else uses ^H for backspace - all of the BSD's and all
   of the vendor Unix's).
  
  As far as I know, ^? indicates the delete key... Maybe the
  delete key does ^H in this setting?
 
 By uses ^H for backspace, I was referring to the terminal emulators
 such as xterm which can be initialized to send either ^H or ^? for
 the backspace key, as well as the console terminals which generally
 send one or the other...
 

Problem solved.  I didn't expect anyone else to have this bug,
but then I googled and found that on ubuntu linux I had to set my
Keybord to Solaris; it had been set to Linux.  I use the kde
Konsole emulator on both desktop. The Keyboard setting of
freebsd console works fine here on FBSD.

'Strange-but-true' 


 -- 
 Thomas E. Dickey
 http://invisible-island.net
 ftp://invisible-island.net



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 4.91a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org