apm233m@vaxc.cc.monash.edu.au
Date: 11/13/92


From: apm233m@vaxc.cc.monash.edu.au
Subject: Re: Strange (REAL strange) emacs/kermit problem
Date: 14 Nov 1992 15:50:07 +1100

In article <1dsra4INNn4n@master.cs.rose-hulman.edu>, operjsl@HYDRA.ROSE-HULMAN.EDU writes:
[stuff deleted]
> As you may know Sun keyboards are kind of odd, so the school management has
> setup emacs so that the DELETE key functions as a backspace and the BACKSPACE
> key sends a ctrl-h. On a PC, this is rather annoying. So far, I have been
> unable to find out where this key binding is set. The REALLY strange thing
> is that these key bindings are only in effect while running emacs from
> within X! Running emacs from a standard console has backspace functioning
> as normal. The REALLY REALLY strange thing is that kermit5a somehow has
> picked up on the settings, and now when I kermit via modem to the school's
> VAX, pressing backspace sends a ctrl-h rather than a backspace, and delete
> sends a backspace! AHHH!! Can anyone give me any clues as to how to correct
> this?

Strange indeed. This sounds like the normal default behaviour to ASCII
codes. Note that ASCII BS (BackSpace) *is* Ctrl-H (0x08).

Is X somehow re-mapping (filtering) the keyboard such that the
BackSpace key sends the correct ASCII (Ctrl-H) code? The kernel
keyboard code (see the kernel source file kernel/chr_drv/keyboard.c)
produces ASCII DEL (0x7f) when the BackSpace key is pressed (assuming
that you call the small-back-arrow key the BackSpace). Similarly, the
response of the kernel keyboard routines to the grey Delete key is the
character sequence <ESC><[><3><~> (the numeric keypad Del key produces
<ESC><O><n>), and perhaps X is re-mapping this to ASCII DEL.

You don't say, but my guess is that you will find that kermit gives
the behaviour you want when not run with X.

I am editing this message using emacs on a VAX, via a modem from my
Linux system running kermit. I don't run X. VAX emacs tells me (when I
use c-h c) that the Linux BackSpace (small back arrow) key (DEL) runs
the command delete-backward-char, and the numeric keypad Del key (ESC
O n) runs the command delete-char.

-- 
===============
Bill Metzenthen
Mathematics Department
Monash University
Australia