Operating System - Linux
1829249 Members
2022 Online
109987 Solutions
New Discussion

Re: xterm and backspace delete(left)

 
Justin_99
Valued Contributor

xterm and backspace delete(left)

Having some trouble getting backspace to work on a system that recently was changed to Redhat AS4U4.
Problem is backspace doesn't delete as a user would expect. I personally use Putty so I do not have this problem. Users however are starting xterms via Reflection.
One odd thing that I do find is if I start an session the same way to a Suse 10.1 workstation the backspace works, only on the Redhat systems am I finding this problem.
I did find that using ctrl-v and hitting backspace key is returning different results. On the Suse system or thru Putty I get ^? on the redhat system I get ^[[3~

Points will be assignedas try possible solutions.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: xterm and backspace delete(left)

Shalom,

stty -a

Take a look at that output, compare it to a system that is functioning normally.

use stty commands to fix the problem.

stty erase

That alone might fix it.

BTW, with ptty you can fix this with the menus.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Justin_99
Valued Contributor

Re: xterm and backspace delete(left)

I have tried using stty erase but I get a syntax error due to what I assume is backspace not sending anything.

I have tried stty erase ^[[3~ that I found the backspace key is sending and still no luck.

stty -a shows that erase is set to ^H.

I think what I need is to somehow change what the backspace key is sending. I.e. make it send ^H or ^? if I set erase to ^?
Justin_99
Valued Contributor

Re: xterm and backspace delete(left)

Fixed it.

Added the Backspace line below to /usr/lib/X11/app-defaults/XTerm

*VT100.translations: #override \
BackSpace: string(0x7F)\n\
Delete: string(0x1b) string("[3~") \n\

<<>
Justin_99
Valued Contributor

Re: xterm and backspace delete(left)

Added Backspace line to /usr/lib/X11/app-defaults/XTerm

*VT100.translations: #override \
BackSpace: string(0x7F)\n\