Hi,

Short version: backspace problem is already solved in ksh93.

Long version:
I performed some tests with various combinations of ksh versions and terminals 
and found that apparently, the problem with the backspace key not erasing the 
character left of the cursor IS ALREADY SOLVED in ksh93 r+ and s-. This does 
not 
mean that other applications would not be remapping the backspace function, as 
Alan mentioned.

When just using the shell, and making sure that no "stty erase" is in 
/etc/profile, /etc/ksh.kshrc, ~/.profile, or ~/.kshrc (or whatever ENV is set 
to), I found that the backspace key is not correctly mapped to the backspace 
function ONLY in ksh version 11/16/88i (the current version in Solaris).

I also found that "stty" in xterm or dtterm shows that "stty erase" is already 
set to ^h by default. For gnome-term, this is not the case (= there is no "stty 
erase" entry shown). Apparently, ksh93 is already able to deal with all this. I 
found that an stty erase ^h entry was in /etc/profile during previous tests, 
which caused a different behavior of ksh93 and apparently made be believe that 
the problem is still there.

Regards,

Bernd

Alan Coopersmith wrote:
> Bernd Finger wrote:
>> Exactly. I would like be able to use the backspace key for erasing one 
>> character left of the current cursor position without having to 
>> execute stty erase <bs> before.
> 
> tcsh does this, and while it's convenient in the shell, it's annoying when
> you execute another program from that shell which doesn't respect this
> setting and you suddenly find backspace isn't working any more.   Thus, I'd
> prefer Jim's suggestion to put it in the kernel so it fixes the issue for
> all programs, not just the shell.
> 


Reply via email to