[comp.emacs] META etc. for IbmPc with Kermit

neitzel@infbs.UUCP (06/07/87)

If you use (any kind of) Emacs with an IBM_PC + Kermit as Terminal,
then you might find the included files useful. Load them with kermit's
"take file" command and have:

	the Alt-key as META-key (letters and top row chars),
	even Alt-Ctrl-... as M-C-...,
	the cursor pad keys 'reasonable' defined.

For more details see the 'ReadMe'.  If anybody has an "Emacs keyboard
driver with meta keys" supporting e.g. MicroEmacs, i would be very glad
to hear from him/her.

				Martin Neitzel
				uucp: ...!mcvax!unido!infbs!neitzel
				bitnet: neitzel@dbsinf6

---------------apply your favourite scissors here!------------------------
#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  ReadMe usaletter.tak usaother.tak usaspec.tak
# Wrapped by neitzel@infbs on Sun Jun  7 19:24:20 1987
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f ReadMe -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"ReadMe\"
else
echo shar: Extracting \"ReadMe\" \(787 characters\)
sed "s/^X//" >ReadMe <<'END_OF_ReadMe'
X
XNittyGritty details:
X
X- You will probably 'cat' the files together into a single take file.
X- European sites will have to adapt the files to their national keyboard
X  layouts.
X- How it is done: Translating the keyboard scan codes to corresponding
X  emacs sequences using kermit.
X- These use ESC as meta-prefix and DON'T set the eight'th bit; so you can
X  use it with MicroEmacs as well.
X- Throw out the part dealing with cursor keys and other special keys,
X  if you want to keep them under your vt10x emulation.
X- Tested with TrueBluePc & MS-Kermit 2.29. However, i found the scan codes
X  for Ctrl-Y and Ctrl-Z not in the expected order. The same with Alt-Ctrl-Y/Z,
X  but plain Y/Z were "okay". Please check this out in the USA.
X- Enjoy.
X
X					Martin Neitzel
X					...!mcvax!unido!infbs
END_OF_ReadMe
if test 787 -ne `wc -c <ReadMe`; then
    echo shar: \"ReadMe\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f usaletter.tak -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"usaletter.tak\"
else
echo shar: Extracting \"usaletter.tak\" \(1465 characters\)
sed "s/^X//" >usaletter.tak <<'END_OF_usaletter.tak'
XComment		Meta-letter and Meta-Ctrl-letter, USA-keyboard
Xset key scan 2078
X\033a
Xset key scan 3102
X\033\001
Xset key scan 2096
X\033b
Xset key scan 3120
X\033\002
Xset key scan 2094
X\033c
Xset key scan 3118
X\033\003
Xset key scan 2080
X\033d
Xset key scan 3104
X\033\004
Xset key scan 2066
X\033e
Xset key scan 3090
X\033\005
Xset key scan 2081
X\033f
Xset key scan 3105
X\033\006
Xset key scan 2082
X\033g
Xset key scan 3106
X\033\007
Xset key scan 2083
X\033h
Xset key scan 3107
X\033\010
Xset key scan 2071
X\033i
Xset key scan 3095
X\033\011
Xset key scan 2084
X\033j
Xset key scan 3108
X\033\012
Xset key scan 2085
X\033k
Xset key scan 3109
X\033\013
Xset key scan 2086
X\033l
Xset key scan 3110
X\033\014
Xset key scan 2098
X\033m
Xset key scan 3122
X\033\015
Xset key scan 2097
X\033n
Xset key scan 3121
X\033\016
Xset key scan 2072
X\033o
Xset key scan 3096
X\033\017
Xset key scan 2073
X\033p
Xset key scan 3097
X\033\020
Xset key scan 2064
X\033q
Xset key scan 3088
X\033\021
Xset key scan 2067
X\033r
Xset key scan 3091
X\033\022
Xset key scan 2079
X\033s
Xset key scan 3103
X\033\023
Xset key scan 2068
X\033t
Xset key scan 3092
X\033\024
Xset key scan 2070
X\033u
Xset key scan 3094
X\033\025
Xset key scan 2095
X\033v
Xset key scan 3119
X\033\026
Xset key scan 2065
X\033w
Xset key scan 3089
X\033\027
Xset key scan 2093
X\033x
Xset key scan 3117
X\033\030
XComment		Meta-Ctrl-Z/Y seem to be twiddled
XComment		this may be an "Germanism" ...
Xset key scan 2069
X\033y
Xset key scan 3093
X\033\031
Xset key scan 2092
X\033z
Xset key scan 3116
X\033\032
END_OF_usaletter.tak
if test 1465 -ne `wc -c <usaletter.tak`; then
    echo shar: \"usaletter.tak\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f usaother.tak -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"usaother.tak\"
else
echo shar: Extracting \"usaother.tak\" \(325 characters\)
sed "s/^X//" >usaother.tak <<'END_OF_usaother.tak'
XComment		Meta-Toprow of USA keyboard
Xset key scan 2168
X\033!
Xset key scan 2169
X\033@
Xset key scan 2170
X\033#
Xset key scan 2171
X\033$
Xset key scan 2172
X\033%
Xset key scan 2173
X\033^
Xset key scan 2174
X\033&
Xset key scan 2175
X\033*
Xset key scan 2176
X\033(
Xset key scan 2177
X\033)
Xset key scan 2178
X\033_
Xset key scan 2179
X\033+
END_OF_usaother.tak
if test 325 -ne `wc -c <usaother.tak`; then
    echo shar: \"usaother.tak\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f usaspec.tak -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"usaspec.tak\"
else
echo shar: Extracting \"usaspec.tak\" \(663 characters\)
sed "s/^X//" >usaspec.tak <<'END_OF_usaspec.tak'
XComment		Emacs sequences for special keys on the IBM keyboard
X
XComment		Home/End (Ctrl-variants caught by Kermit ???)
Xset key scan 71
X\033<
Xset key scan 79
X\033>
X
XComment		PgUp/PgDn (Ctrl-...)
Xset key scan 73
X\033v
Xset key scan 81
X\026
Xset key scan 1156
X\033[
Xset key scan 1142
X\033]
X
XComment		Cursor keys: up down left right
Xset key scan 72
X\020
Xset key scan 80
X\016
Xset key scan 75
X\002
Xset key scan 77
X\006
XComment		Ctrl-Lt/Rt:
Xset key scan 1139
X\033b
Xset key scan 1140
X\033f
X
XComment		C/M-Space / Insert/Delete / C - <--
Xset key scan 1081
X\000
Xset key scan 2105
X\033\040
Xset key scan 82
X\033xoverwrite-mode\015
Xset key scan 83
X\004
Xset key scan 1038
X\033\177
END_OF_usaspec.tak
if test 663 -ne `wc -c <usaspec.tak`; then
    echo shar: \"usaspec.tak\" unpacked with wrong size!
fi
# end of overwriting check
fi
echo shar: End of shell archive.
echo Read the \"ReadMe\" first.
echo Then you might want to run \"cat usa\*.cat > usaall.tak\" and
echo download that to your IbmPc and take it finally.
exit 0