🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99118

remapping ^H in gnu emacs

#99118
From: LUSYSNZ
Date: Fri, 26 Oct 1990 21:40
64 lines
2679 bytes
Relay-Version: VMS News - V5.9C 19/12/89 VAX/VMS V5.3; site vax1.cc.lehigh.edu
Path: vax1.cc.lehigh.edu!vax1.cc.lehigh.edu!netnews.upenn.edu!rutgers!tut.cis.ohio-state.edu!eurotherm.co.uk!mt00
Newsgroups: gnu.emacs.bug
Subject: remapping ^H in gnu emacs
Message-ID: <7310.9010220802@jackdaw.eurotherm.co.uk>
From: mt00@eurotherm.co.uk (Martin Tomes)
Date: 22 Oct 90 08:02:15 GMT
Sender: daemon@tut.cis.ohio-state.edu
References: <112@frcs.UUCP>
Distribution: gnu
Organization: GNUs Not Usenet
Approved: bug-gnu-emacs@prep.ai.mit.edu
Lines: 50

The real answer is to remap your keyboard to generate DEL from the
backspace key.  This is particularly simple for users of X, but can
usually be done from terminals.

This is an extract from a program we use to set up UK keyboards.  I
only show the bit which sets up the delete keys.  This program runs on
Interactive UNIX, I have no idea if it works on Intel.

------------------------------------------------------------------------------
#include <stdio.h>
#include <sys/types.h>
#include <sys/at_ansi.h>
#include <sys/kd.h>

main ()

{

	struct kbentry keydef;

keydef.kb_table = 0x00;
keydef.kb_index = 0x4B;
keydef.kb_value = 


/* Make backspace delete. */
/* set Normal key stroke    */
keydef.kb_table = 0x00;  /* table 0x00 = normal key stroke */
keydef.kb_index = 14;    /* index = scan code */
keydef.kb_value = 0x7f;  /* value = hex valur of ascii char */
ioctl(0,KDSKBENT,& keydef);

/* set shifted key stroke   */
keydef.kb_table = 0x01;
keydef.kb_value = 0x7f;
ioctl(0,KDSKBENT,& keydef);

/* set altered key stroke   */
keydef.kb_table = 0x02;
keydef.kb_value = 0x7f;
ioctl(0,KDSKBENT,& keydef);

}
------------------------------------------------------------------------------

Martin Tomes

Janet:    mt00@uk.co.eurotherm    | Eurotherm Limited, Faraday Close,
Internet: mt00@eurotherm.co.uk    | Durrington, Worthing, W.Sussex, England.
UUCP:     {ukc,uunet}!etherm!mt00 | Phone: +44 903 68500  Fax: +44 903 65982
Technical Details
Message-ID: <138DF702DF5F800042@VAX1.CC.LEHIGH.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!riacs!agate!ucbvax!tut.cis.ohio-state.edu!VAX1.CC.LEHIGH.EDU!LUSYSNZ

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,cf3a92fe06a235c3,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-10-26 14:40:00 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!shelby!riacs!agate!ucbvax!tut.cis.ohio-state.edu!VAX1.CC.LEHIGH.EDU!LUSYSNZ
From: LUSYSNZ@VAX1.CC.LEHIGH.EDU
Newsgroups: gnu.emacs.bug
Subject: remapping ^H in gnu emacs
Message-ID: <138DF702DF5F800042@VAX1.CC.LEHIGH.EDU>
Date: 26 Oct 90 21:40:00 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: Gnus Not Usenet
Lines: 64
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Fri Oct 26 22:40:00 1990