Xshell Forum

Bug in default Backspace setting for TERM=xterm

Last post: Monday, May 19, 2008 5:31 PM by Support, 3 reply

 
Tuesday, May 6, 2008 10:46 PM - Yakov

Bug in default Backspace setting for TERM=xterm

 
XShell default key settings for TERM=xterm
have a bug that caused me much trouble.
Original xterm generates ^? for Backspace key, not ^H.

Yet in XShell->Properties->Terminal->Keyboard->Backspace key sequence, when Terminal emulation is set to xterm, the default is ^H. This is wrong. It will break anyone's editor setting.

The default for Backspace key sequence must depend on the Terminal emulation type, just as in Function Key depend on terminal type.

You probably should have 4th option in "Backspace key sequence", option , just like you have it for Function keys; or at least correct the default for xterm emulation.

Of course, putty has it right.

Yakov


Program Ver. : Xshell 3.0
Wednesday, May 7, 2008 7:01 PM - Support

Re: Bug in default Backspace setting for TERM=xterm

 
The backspace key is not related to the terminal type. It can be even be configured manually by using the 'stty' command. For this reason, may not be the correct back space sequence.

Thank you for the sharing your opinion with us.

---
Technical Support
Monday, May 12, 2008 4:06 PM - Yakov

Re: Re: Bug in default Backspace setting for TERM=xterm

 
Yes, my .bashrc needs to setup my 'stty erase' right. I have different terminal emulators.

Of course I want my .bashrc to setup my 'stty erase' automatically and correctly.

But which infrmation .bashrc has to setup 'stty erase' right ? Only $TERM. If $TERM does not correspond to and what Backspace key generetes, 'stty erase' (.bashrc) is screwed, it cannot configure properly.
It canot magically read minds of you Xshell developers. So it is screwed. But it does check $TERM.

Yakov
Monday, May 19, 2008 5:31 PM - Support

Re: Re: Re: Bug in default Backspace setting for TERM=xterm

 
Thanks for pointing this out. We have noticed that backspace key automatically changes only under certain system. Normally, it didn't.

We will further look into this and try adding a support in our future edition.


---
Technical Support