* Remove key on DECstation under Xwindows
@ 1992-08-13 15:17 Matthew Braun
1992-08-17 12:55 ` Matthew Braun
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Braun @ 1992-08-13 15:17 UTC (permalink / raw)
Info: DECstation 5000/200, LK201 keyboard, X11R4, twm or mwm
Can anyone think of a reason the Remove key would send ^[[3~ to a xterm
window and send nothing to an emacs window?
In a xterm, run 'cat > /dev/null'
then press: <Remove> <Return> <Ctrl-D>
and you will see the above characters that are send to a xterm window.
In an emacs window, it sends nothing.
Press <Ctrl-Q> (runs quoted-insert command)
then press Remove... nothing! (unless it works for you)
You can try other keys, like Find, Select, Prev, Next. They work.
I am trying to define my keyboard in the .emacs file, they all work
(except Remove) when emacs creates its own window:
(defvar CSI-map nil " ")
(if (not CSI-map)
(progn
(setq CSI-map (make-keymap))
(define-key global-map "\e[" CSI-map)
(define-key CSI-map "1~" 'set-mark-command) ;; Find
(define-key CSI-map "2~" 'beginning-of-line) ;; Insert Here
(define-key CSI-map "3~" 'scroll-down) ;; Remove
(define-key CSI-map "4~" 'delete-char) ;; Select
(define-key CSI-map "5~" 'end-of-line) ;; Prev Screen
(define-key CSI-map "6~" 'scroll-up) ;; Next Screen
(define-key CSI-map "25~" 'beginning-of-buffer) ;; F13
(define-key CSI-map "26~" 'end-of-buffer) ;; F14
))
All these definitions work including the Remove key if start emacs in a
xterm window with: emacs -t `tty`
Please email, I'll post a summary if there is interest.
Thanks,
Matthew
---------------
internet: braun@falcon.aa.cad.slb.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Remove key on DECstation under Xwindows
1992-08-13 15:17 Remove key on DECstation under Xwindows Matthew Braun
@ 1992-08-17 12:55 ` Matthew Braun
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Braun @ 1992-08-17 12:55 UTC (permalink / raw)
In article <1992Aug13.151752.8531> (Matthew Braun) writes:
>Info: DECstation 5000/200, LK201 keyboard, X11R4, twm or mwm
>
>Can anyone think of a reason the Remove key would send ^[[3~ to a xterm
>window and send nothing to an emacs window?
>
Summary:
The problem described above seemed to be a problem with both the
DECstation's Remove key being defined strange and emacs not supporting all
the keys provided in X include file X11/keysymdef.h. The emacs source
file x11term.c is where the X KeyPress events are processed, and there you
can follow the program and find out how emacs handles them.
There were two possible solutions:
1. As almost everyone stated, you can modify the x11term.c source and
recompile, which would be really easy to do after looking at the code.
But I don't administrate the computers here, so I was looking for a way
around doing that.
2. Another way was to redefine the keyboard with 'xmodmap'. I just
redefined the Remove key to the Do/Menu/F16 (all equivalent names) key.
This produced the code ^[[29~ which is recognized as a valid key stroke in
emacs. [Note that this would leave you with two keys the same as defined
in the xmodmap. But, I also redefined the Do/Menu key to the Caps_Lock
key because I redefined the normal Lock key to the Control_R key.]
Other responses were that I could use epoch to solve this problem. I have
no idea what epoch is, so I don't know what it does. Another person said
it worked fine on his system which was configured the same as mine, maybe
someone already patched his emacs.
Thanks to all that replied:
"Hamish (H.I.) Macdonald" <hamish@x400gate.bnr.ca>
Andy Harp <aharp@hermes.mod.uk>
Craig Fisher <fisher@sifvx6.sinet.slb.com>
Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>
Matthew.
---------------
internet: braun@falcon.aa.cad.slb.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1992-08-17 12:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1992-08-13 15:17 Remove key on DECstation under Xwindows Matthew Braun
1992-08-17 12:55 ` Matthew Braun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox