mapkey file for GNU Emacs usage

Neil Erskine erskine at force10.UUCP
Sat May 7 04:49:19 AEST 1988


][b
	Here is a keyboard configuration file for the Xenix 'mapkey' utility,
implementing a meta-key for use with GNU Emacs. Make sure that you specify
the 'km' attribute in your termcap/terminfo entry, and that it is compiled
to recognize the meta key. The meta key is the key labeled Alt.  Note that
the file changes the backspace key to transmit DEL (177), so you will want
to place the line "stty erase DEL" in your {.login,.profile} file.

	To use, just place 'mapkey filename' in /etc/rc, replacing filename
with the name you gave to this entry. I have been using this for about a week.
If you are using kermit to talk to a remote site that runs GNU Emacs, and you
wish to use the Meta key for that purpose, make sure that kermit isn't
stripping the 8'th bit from transissions. I had to make the one line change
to the kermit source file 'ckucon.c', at line 121 (Version 4D(061)):

<	 	c = coninc(0) & 0177;	/* Get character from keyboard */
> 		c = coninc(0) & 0377;	/* Get character from keyboard */

Good luck, the mapkey file follows my signature entry.

					Neil Erskine
---------
Neil S. Erskine		MT&T - (902) 453-4915 x340
AP Computers 		USENET { garfield, watmath, ihnp4!utzoo!utai,
3845 Dutch Village Rd.		 uunet } !dalcs!force10!erskine
Halifax, N.S. B3L-4H9

--------------------------------------------------------------------------
#                                                        alt
# scan                      cntrl          alt    alt   cntrl  lock
# code  base  shift  cntrl  shift   alt   shift  cntrl  shift  state
     0  nop    nop    nop    nop    nop    nop    nop    nop     O
     1  esc    esc    nop    nop    0x9b   0x9b   nop    nop     O
     2  '1'    '!'    nop    nop    0xb1   0xa1   nop    nop     O
     3  '2'    '@'    nul    nul    0xb2   0xc0   0xa0   nop     O
     4  '3'    '#'    nop    nop    0xb3   0xa3   nop    nop     O
     5  '4'    '$'    nop    nop    0xb4   0xa4   nop    nop     O
     6  '5'    '%'    nop    nop    0xb5   0xa5   nop    nop     O
     7  '6'    '^'    rs     rs     0xb6   0xde   0x9e   nop     O
     8  '7'    '&'    nop    nop    0xb7   0xa6   nop    nop     O
     9  '8'    '*'    nop    nop    0xb8   0xaa   nop    nop     O
    10  '9'    '('    nop    nop    0xb9   0xa8   nop    nop     O
    11  '0'    ')'    nop    nop    0xb0   0xa9   nop    nop     O
    12  '-'    '_'    ns     ns     0xad   0xdf   0xaf   nop     O
    13  '='    '+'    nop    nop    0xbd   0xab   nop    nop     O
    14  del    del    del    del    0xff   0xff   0xff   del     O
    15  ht     btab   nop    nop    0x89   0x97   nop    nop     O
    16  'q'    'Q'    dc1    nop    0xf1   0xd1   0x91   nop     C
    17  'w'    'W'    etb    nop    0xf7   0xd7   0x97   nop     C
    18  'e'    'E'    enq    nop    0xe5   0xc5   0x85   nop     C
    19  'r'    'R'    dc2    nop    0xf2   0xd2   0x92   nop     C
    20  't'    'T'    dc4    nop    0xf4   0xd4   0x94   nop     C
    21  'y'    'Y'    em     nop    0xf9   0xd9   0x99   nop     C
    22  'u'    'U'    nak    nop    0xf5   0xd5   0x95   nop     C
    23  'i'    'I'    ht     nop    0xe9   0xc9   0x89   nop     C
    24  'o'    'O'    si     nop    0xef   0xcf   0x8f   nop     C
    25  'p'    'P'    dle    nop    0xf0   0xd0   0x90   nop     C
    26  '['    '{'    esc    nop    0xdb   0xfb   0x9b   nop     O
    27  ']'    '}'    gs     nop    0xdd   0xfd   0x9d   nop     O
    28  cr     cr     nl     nl     0x8d   0x8d   0x8d   nl      O
    29  ctrl   ctrl   ctrl   ctrl   ctrl   ctrl   ctrl   ctrl    O
    30  'a'    'A'    soh    nop    0xe1   0xc1   0x81   nop     C
    31  's'    'S'    dc3    nop    0xf3   0xd3   0x93   nop     C
    32  'd'    'D'    eot    nop    0xe4   0xc4   0x84   nop     C
    33  'f'    'F'    ack    nop    0xe6   0xc6   0x86   nop     C
    34  'g'    'G'    bel    nop    0xe7   0xc7   0x87   nop     C
    35  'h'    'H'    bs     nop    0xe8   0xc8   0x88   nop     C
    36  'j'    'J'    nl     nop    0xea   0xca   0x8a   nop     C
    37  'k'    'K'    vt     nop    0xeb   0xcb   0x8b   nop     C
    38  'l'    'L'    np     nop    0xec   0xcc   0x8c   nop     C
    39  ';'    ':'    nop    nop    0xbb   0xba   nop    nop     O
    40  '\''   '"'    nop    nop    0xa7   0xa2   nop    nop     O
    41  '`'    '~'    nop    nop    0xe0   0xfe   nop    nop     O
    42  lshift lshift lshift lshift lshift lshift lshift lshift  O
    43  '\\'   '|'    fs     fs     0xdc   0xfc   0xac   fs      O
    44  'z'    'Z'    sub    nop    0xfa   0xda   0x9a   nop     C
    45  'x'    'X'    can    nop    0xf8   0xd8   0x98   nop     C
    46  'c'    'C'    etx    nop    0xe3   0xc3   0x83   nop     C
    47  'v'    'V'    syn    nop    0xf6   0xd6   0x96   nop     C
    48  'b'    'B'    stx    nop    0xe2   0xc2   0x82   nop     C
    49  'n'    'N'    so     nop    0xee   0xce   0x8e   nop     C
    50  'm'    'M'    cr     nop    0xed   0xcd   0x8d   nop     C
    51  ','    '<'    nop    nop    0xac   0xbc   nop    nop     O
    52  '.'    '>'    nop    nop    0xae   0xbe   nop    nop     O
    53  '/'    '?'    nop    nop    0xaf   0xbf   nop    nop     O
    54  rshift rshift rshift rshift rshift rshift rshift rshift  O
    55  '*'    '*'    nscr   nscr   '*'    '*'    nscr   nscr    O
    56  alt    alt    alt    alt    alt    alt    alt    alt     O
    57  ' '    ' '    ' '    ' '    ' '    ' '    ' '    ' '     O
    58  clock  clock  clock  clock  clock  clock  clock  clock   O
    59  fkey1  fkey13 fkey25 fkey37 scr1   scr1   scr1   scr1    O
    60  fkey2  fkey14 fkey26 fkey38 scr2   scr2   scr2   scr2    O
    61  fkey3  fkey15 fkey27 fkey39 scr3   scr3   scr3   scr3    O
    62  fkey4  fkey16 fkey28 fkey40 scr4   scr4   scr4   scr4    O
    63  fkey5  fkey17 fkey29 fkey41 scr5   scr5   scr5   scr5    O
    64  fkey6  fkey18 fkey30 fkey42 scr6   scr6   scr6   scr6    O
    65  fkey7  fkey19 fkey31 fkey43 scr7   scr7   scr7   scr7    O
    66  fkey8  fkey20 fkey32 fkey44 scr8   scr8   scr8   scr8    O
    67  fkey9  fkey21 fkey33 fkey45 scr9   scr9   scr9   scr9    O
    68  fkey10 fkey22 fkey34 fkey46 scr10  scr10  scr10  scr10   O
    69  nlock  nlock  dc3    dc3    nlock  nlock  dc3    dc3     O
    70  slock  slock  del    del    slock  slock  del    del     O
    71  fkey49 '7'    '7'    '7'    '7'    '7'    '7'    '7'     N
    72  fkey50 '8'    '8'    '8'    '8'    '8'    '8'    '8'     N
    73  fkey51 '9'    '9'    '9'    '9'    '9'    '9'    '9'     N
    74  fkey52 '-'    '-'    '-'    '-'    '-'    '-'    '-'     N
    75  fkey53 '4'    '4'    '4'    '4'    '4'    '4'    '4'     N
    76  fkey54 '5'    '5'    '5'    '5'    '5'    '5'    '5'     N
    77  fkey55 '6'    '6'    '6'    '6'    '6'    '6'    '6'     N
    78  fkey56 '+'    '+'    '+'    '+'    '+'    '+'    '+'     N
    79  fkey57 '1'    '1'    '1'    '1'    '1'    '1'    '1'     N
    80  fkey58 '2'    '2'    '2'    '2'    '2'    '2'    '2'     N
    81  fkey59 '3'    '3'    '3'    '3'    '3'    '3'    '3'     N
    82  fkey60 '0'    '0'    '0'    '0'    '0'    '0'    '0'     N
    83  del    '.'    del    del    del    del    del    del     N
    84  nop    nop    nop    nop    nop    nop    nop    nop     O
    85  fkey11 fkey23 fkey35 fkey47 scr11  scr11  scr11  scr11   O
    86  fkey12 fkey24 fkey36 fkey48 scr12  scr12  scr12  scr12   O
    87  nop    nop    nop    nop    nop    nop    nop    nop     O
    88  nop    nop    nop    nop    nop    nop    nop    nop     O
    89  nop    nop    nop    nop    nop    nop    nop    nop     O
    90  nop    nop    nop    nop    nop    nop    nop    nop     O
    91  nop    nop    nop    nop    nop    nop    nop    nop     O
    92  nop    nop    nop    nop    nop    nop    nop    nop     O
    93  nop    nop    nop    nop    nop    nop    nop    nop     O
    94  nop    nop    nop    nop    nop    nop    nop    nop     O
    95  nop    nop    nop    nop    nop    nop    nop    nop     O
    96  nop    nop    nop    nop    nop    nop    nop    nop     O
    97  nop    nop    nop    nop    nop    nop    nop    nop     O
    98  nop    nop    nop    nop    nop    nop    nop    nop     O
    99  nop    nop    nop    nop    nop    nop    nop    nop     O
   100  nop    nop    nop    nop    nop    nop    nop    nop     O
   101  nop    nop    nop    nop    nop    nop    nop    nop     O
   102  nop    nop    nop    nop    nop    nop    nop    nop     O
   103  nop    nop    nop    nop    nop    nop    nop    nop     O
   104  nop    nop    nop    nop    nop    nop    nop    nop     O
   105  nop    nop    nop    nop    nop    nop    nop    nop     O
   106  nop    nop    nop    nop    nop    nop    nop    nop     O
   107  nop    nop    nop    nop    nop    nop    nop    nop     O
   108  nop    nop    nop    nop    nop    nop    nop    nop     O
   109  nop    nop    nop    nop    nop    nop    nop    nop     O
   110  nop    nop    nop    nop    nop    nop    nop    nop     O
   111  nop    nop    nop    nop    nop    nop    nop    nop     O



More information about the Comp.unix.xenix mailing list