Tue Mar  8 12:36:50 MST 1988

selection of wyse60 menu options
some trouble with interaction with emacs and vi
adjust both stty and wyse menu

set wyse function keys etc, to agree with console keyboard/terminfo,
which here is ansi, as set in /etc/rc.d/keybrd.rc

----------------------------------------------------------------------
F1 = display

answerback conceal	off
answerback mode		off
attribute		char
background		dark
columns			80
cursor			blink block
display cursor		on
lines			24
page length		1*lines
scrl speed		jump
scrn saver		off		#use unix demon
status line		off		#no status line - annoying


F2 general setup

autoscrl		on
comm mode		full duplex
data/printer		modem/aux
eol wrap		on
enhance			off		#important??
font load		off
init tabs		on
monitor			off		#important??
personality		vt100		#best way to get ascii??
rcvd cr			cr
send ack		off		#important??
width change		off


F3 keyboard setup

break			250ms
corner key		hold
enter			cr
fkey xmt limit		none
key repeat		on
keyclick		off
keylock			caps
language		us
margin bell		off
return			cr
wyseword		off
xmt limit		none


F4 comm setup

aux baud rate		9600
aux data/stop bits	8/1
aux parity		none
aux rcv handshake	dsr
aux xmt handshake	none
baud rate		9600
data/stop bits		8/1		#note - compatibility with stty
parity			none
rcv handshake		xon/xoff
xmt handshake		xon/xoff
xpc handshake		off


F5 miscellaneous setup

autopage		on
block end		US/cr
labels			off
page edit		off
save labels		off
test			off
tvi955 attribute	no space
vp60 blk end		none
wprt intensity		dim
wprt reverse		off
wprt underline		off


F6 = tabs
F7 = answerback definitin
F8 = redfining keys
f9 = key labels

------------------------------------------------------------


redefining keys (F9 above):
do only ones without initial tab

: /bin/sh
#  iAPX286 @(#)keybrd.rc.sh	1.1
#  set up the keyboard ansi as ansi standard
# setup keys for ansi mapping	(^[ is ESCAPE)
	/etc/setkey	shift tab	"^[[Z"	# bt cbt  backtab
	/etc/setkey	up		"^[[A"	# ku kcuu1  up cursor
	/etc/setkey	down		"^[[B"	# kd kcud1  down cursor
	/etc/setkey	right		"^[[C"	# kr kcuf1  right (forward) cursor
	/etc/setkey	left		"^[[D"	# kl kcub1  left (backward) cursor
	/etc/setkey	home		"^[[H"	# kh khome  cursor home
/etc/setkey	end		"^[[E"	# kH kll  cursor end
/etc/setkey	pgdn		"^[[V"	# kN knp  next page
/etc/setkey	pgup		"^[[U"	# kP kpp  previous page
/etc/setkey	ins		"^[[@"	# kI kich1  insert character
/etc/setkey	prtsc		"^[[i"	# ps mc0  print screen
	/etc/setkey	alt ins		"^[[L"	# kA kil1  insert line
	/etc/setkey	alt del		"^[[M"	# kL kdl1  delete line
	/etc/setkey	ctrl del	"^[[P"	# kD kdch1  delete character
	/etc/setkey	ctrl up		"^[[S"	# kR kri  scroll up
	/etc/setkey	ctrl down	"^[[T"	# kF kind  scroll down
	/etc/setkey	ctrl left	"^[[!@"	# kC kclr  clear screen -> scroll left
	/etc/setkey	ctrl right	"^[[!A"	# kE kel  clear eol -> scroll right
/etc/setkey	f1		"^[Oc"	# k1 kf1  function 1
/etc/setkey	f2		"^[Od"	# k2 kf2  function 2
/etc/setkey	f3		"^[Oe"	# k3 kf3  function 3
/etc/setkey	f4		"^[Of"	# k4 kf4  function 4
/etc/setkey	f5		"^[Og"	# k5 kf5  function 5
/etc/setkey	f6		"^[Oh"	# k6 kf6  function 6
/etc/setkey	f7		"^[Oi"	# k7 kf7  function 7
/etc/setkey	f8		"^[Oj"	# k8 kf8  function 8
/etc/setkey	f9		"^[Ok"	# k9 kf9  function 9
/etc/setkey	f10		"^[Ol"	# ka kf10 function 10
/etc/setkey	shift f1	"^[OC"	# l1 lf1  function 1 shifted
/etc/setkey	shift f2	"^[OD"	# l2 lf2  function 2 shifted
/etc/setkey	shift f3	"^[OE"	# l3 lf3  function 3 shifted
/etc/setkey	shift f4	"^[OF"	# l4 lf4  function 4 shifted
/etc/setkey	shift f5	"^[OG"	# l5 lf5  function 5 shifted
/etc/setkey	shift f6	"^[OH"	# l6 lf6  function 6 shifted
/etc/setkey	shift f7	"^[OI"	# l7 lf7  function 7 shifted
/etc/setkey	shift f8	"^[OJ"	# l8 lf8  function 8 shifted
/etc/setkey	shift f9	"^[OK"	# l9 lf9  function 9 shifted
/etc/setkey	shift f10	"^[OL"	# la lf10 function 10 shifted
	/etc/setkey	shift ins	"^[[L"	# kA kil1  insert line
	/etc/setkey	shift del	"^[[P"	# kD kdch1  delete character
	/etc/setkey	shift up	"^[[S"	# kR kri  scroll up
	/etc/setkey	shift down	"^[[T"	# kF kind  scroll down
	/etc/setkey	shift left	"^[[!@"	# kC kclr  clear screen -> scroll left
	/etc/setkey	shift right	"^[[!A"	# kE kel  clear eol -> scroll right
	/etc/setkey	shift pgup	"^[[!U"	# K3 ka3  pad upper right
	/etc/setkey	shift pgdn	"^[[!V"	# K5 kc3  pad lower right
	/etc/setkey	shift home	"^[[!H"	# K1 ka1  pad upper left
	/etc/setkey	shift end	"^[[!E"	# K4 kc1  pad lower left
