	Most keys map to indirect files to make customizing
AnalytiCalc easier on VAX. These files are assumed in one's default
directory with names KYa.CMD where a is P, R, or S for PF1,PF3,
or PF4, or AKa.CMD where a ranges from A through N (0 thru 9
are E thru N).
	Note the terminal is set into auxiliary keypad mode to
enable these keys to function.
AUX KEYPAD MAPPING IS:
  KEY	CHAR	AKx.CMD  x=
  0	p	E
  1     q	F
  2	r	G
  3	s	H
  4     t       I
  5	u	J
  6	v	K
  7	w	L
  8	x	M
  9	y	N
  ,	l	A
  -	m	B
  .	n	C
 ENTER o	D

 MAPPING FOR PF1 THRU PF4 IS:
 KEY	FILE
 PF1	KYP.CMD
 PF2	(NONE - EQUIVALENT TO H COMMAND)
 PF3	KYR.CMD
 PF4	KYS.CMD

The keypad files are designed to be stored in a directory /DK which should be readable 
to everyone. Analyticalc interprets escape sequences internally (in Linux, it would
normally be run using the "analyticalc" command which sets the tty into raw and noecho
mode so that reading the terminal window gives escape sequences that are generated.

These are (alas) rather variable on different platforms, so that while the intent is
that the file PCCHELP.HLP in the /DK directory should display a keypad diagram to
let users know what the keys do, keys in Linux don't look like they all generate
escape sequences which Analyticalc can parse into filenames. The normal numeric keypad
generates arrow keys etc. or in NumLock mode just reads as digits. This leaves us with 
function keys. F5-F10 and F12 generate codes that can be read.

Mapping is this for aux keypad when it generates anything:
($ means "escape")

escape code	key in aux keypad
$[2		0
$[F		1
$[B		2
$[6		3
$[D		4
$[E		5
$[C		6
$[H		7
$[A		8
$[5		9

result keys	F key
$[15		f5
$[17		f6
$[18		f7
$[19		f8
$[20		f9
$[21		f10
$[24		f12

The foregoing are as read by Tecoc.

Note that keys use names AK<letter>.CMD for their files, but a single key should
be defined as "gold" which acts as a shift key. The command ^ (that is a single line
starting with the "^" character) increments the "gold" level, which if nonzero
causes these filenames to have A, B, C, D, .... added giving names like AKAA.CMD
instead of AKA.CMD, or perhaps AKAB.CMD and so on, using multiple gold key
presses. (The files can be invoked more primitively by typing, e.g., 
@/DK/AKA.CMD
to invoke the command.)

The system is set now (1/24/19) to attempt to convert sequences ending in num,num,~ to a character by taking the 2 digit number, making it modulo 10 and adding the ASCII code for 0, so it should wind up making names like AK0.CMD to AK9.CMD if key sequences can be generated by the terminal emulator. This only happens
where these escape sequences are generated with 2 digits and ~.
The program will send the <esc>= sequence out when it starts to try to switch
on the keypad mode, doing this when it starts.

This stuff is still being worked for the Linux case. Older sources for VMS and RSX
(for real DEC terminals), for SunOS, for AmigaDos, and so on exist and are in the
full source kits. Note that some of the command files are used to move cells into
rectangular areas where that is desired. That operation is pretty fast, and is
used to fill in areas, where normally Analytcalc works on rows or columns. The
command language lets the program move over a whole area and move or copy/relocate
large areas.

