#!/bin/sh
x=`basename $0`
#	SID	"@(#)angkeys.sh	3.1 - 93/12/17"
if [ X"$1" = X-x ] ; then
	cat <<!
$x [-x] [us|uk|ge]

where: us is for US keyboards, uk is for UK and ge is for GERMAN

Changes Scan Codes for SCO Console to make keyboard work much like the
DOS version of ANGOSS SmartWare.

NOTES:	-Only operates on SCO Console (or terminals emulating SCO console)
	-Other programs will not operate after running this
	-To reset scan codes, logout or run the mapkey command on the
	 appropriate file in /usr/lib/keyboard/.
	-The mapkey files must be in the current directory

-x		display this explanation

!
	exit 1
fi
mapkey mapkey.$1
setkey 76 "\033l"
setkey 81 "\033q"
setkey 87 "\033w"
setkey 69 "\033e"
setkey 82 "\033r"
setkey 84 "\033t"
setkey 89 "\033y"
setkey 85 "\033u"
setkey 73 "\033i"
setkey 79 "\033o"
setkey 80 "\033p"
setkey 65 "\033a"
setkey 83 "\033s"
setkey 68 "\033d"
setkey 70 "\033f"
setkey 71 "\033g"
setkey 72 "\033h"
setkey 74 "\033j"
setkey 75 "\033k"
setkey 76 "\033l"
setkey 90 "\033z"
setkey 88 "\033x"
setkey 67 "\033c"
setkey 86 "\033v"
setkey 66 "\033b"
setkey 78 "\033n"
setkey 77 "\033m"
# Home
setkey 91 "\033/\033[A"
# End
setkey 92 "\033/\033[B"
# right
setkey 93 "\033\033[C"
# left
setkey 94 "\033\033[D"
