mapping delete key
Fairlight
fairlite at fairlite.com
Wed Feb 21 09:03:14 PST 2007
Only Richard D. Williams would say something like:
> Does anyone know how I can change the behavior of the delete key for a
> xterm emulation?
> This would be for filepro only.
>
> I would like to change my filepro termcap so the Delete key works the
> same as the scoansi Delete key instead of having to do a ctrl-c.
man xmodmap
I don't actually remember the full syntax anymore though. Been quite a
while since I've regularly used X11. There's a section in the examples in
the man page that shows setting Backspace to emit "^?", so you should be
able to extrapolate.
You're not exactly on about just for an xterm though. Using something like
xmodmap is going to change it server-wide (well, session-wide). So if that
key is currently doing something like the IBM Remove "^[[3~" sequence, and
you force it to generate 0x7F, -all- your applications are going to have to
be able to cope with that key emitting that. For an xterm, you'll just
need to set INTR to "^?", and that's no problem. Most other things don't
care. Some might, though. Web browsers used to have funny ideas about ^H
vs ^? in text input widgets--especially Motif-based anything.
But for an xterm to do what you want, you need to xmodmap to get the key
emitting the right code, and -also- stty inside the shell, or set that
discipline when starting the xterm (-tm intr "^?"). You need the
combination of actions for this to work.
mark->
--
Fairlight-> ||| "There are no rules here. We're | Fairlight Consulting
__/\__ ||| just trying to accomplish |
<__<>__> ||| something." --Thomas Edison | http://www.fairlite.com
\/ ||| | info at fairlite.com
More information about the Filepro-list
mailing list