[comp.windows.x] Backspace Key for Xterm??

albert@netcom.UUCP (Albert Hui) (10/13/90)

I like to find out how to configure Xterm to use the Delete or Backspace
correctly when connecting to a VAX system.
I have tried to use xmodmap but without any success.
Is there any resource that can be set on xterm to allow selection of
the delete or backspace key?
I am running on an HP9000 workstation using Mwm.

mouse@LARRY.MCRCIM.MCGILL.EDU (10/13/90)

> I like to find out how to configure Xterm to use the Delete or
> Backspace correctly when connecting to a VAX system.
> I have tried to use xmodmap but without any success.
> Is there any resource that can be set on xterm to allow selection of
> the delete or backspace key?

You don't say what your problem is.  Specifically, in what way does
what you expect differ from what actually happens?  And when you "tried
to use xmodmap", what precisely did you feed it and how did it affect
things?

(It is, in general, utterly impossible to help when all you say is "it
doesn't work".  Be specific!  "I typed `xprogram -fg gray' and it said
`xprogram: color "gray" too boring to use'."  Now *that's* a useful
problem statement, as opposed to, say, "xprogram's -fg option is
broken".)

As I understand xterm, if a key is set to the Delete keysym, it should
generate a delete character, and if it's set to a BackSpace keysym, it
should generate a backspace character.  Is this not what you're seeing?

					der Mouse

			old: mcgill-vision!mouse
			new: mouse@larry.mcrcim.mcgill.edu

gildea@ALEXANDER.BBN.COM (Stephen Gildea) (10/16/90)

    I like to find out how to configure Xterm to use the Delete or Backspace
    correctly when connecting to a VAX system....

You are not very specific about what the problem is, what you have
tried, or what behavior you want.  You do say you are connecting from
an HP to a Vax, so I'm assuming that you want to use the Backspace key
as Delete, since HP terminals have the Delete key in a very awkward
place.

The simplest fix for the HP keyboard is to use xmodmap to have
Backspace always send the Delete keysym:

keysym BackSpace = Delete


If you want something more specific for your xterms that are connected
to a Vax, you can give them a unique name (in the resource manager
sense) and use a translation resource:

xterm-vax*VT100*Translations: #override<Key>BackSpace: string("\177")


 < Stephen				Bolt Beranek and Newman Inc.
   gildea@bbn.com			Cambridge, Massachusetts

      Tell me, who was it you left me for?  Was it Laszlo, or were
      there others in between?  Or aren't you the kind that tells?