[comp.sys.amiga] Amiga Ansi Termcap

kent@swrinde.nde.swri.edu (Kent D. Polk) (03/30/89)

There have been several requests for an Amiga termcap lately, and since I
recently upgraded mine, I decided it was time to repost. Hope this isn't 
an inconvenience.

Anyway, here is the latest version of my Amiga termcap file (mainly for use
with Dnet).  Fixed a couple of mistakes & added a few more entries.

BTW:

I pulled a termcap compatible version of tput (SysV) off of the net,
but it doesn't seem to correctly handle certain commands which use
single parameters (such as 'Move Cursor up n lines'). It seems to want
an extra parameter as in:  tput UP 1 5   - where I want to move up 5
lines. Is this correct? Vi seems to handle entries with single
parameters such as DO, UP, etc. fine though.

If you want to try this termcap entry without putting it in /etc/termcap,
you can use the following alias:

alias amiga "setenv TERMCAP path/amiga; set term = amiga"

Where path/amiga is the path name to the file 'amiga' which is the following
termcap entry file.

Please sent comments/bug reports, as I would like to maintain this entry
at least for now.

Thanks.

=======================================================
       Kent Polk - Southwest Research Institute
 {cs.utexas.edu, gatech!petro sun!texsun}!swrinde!kent
=======================================================

#--------------------- cut here ------------------
#!/bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	amiga
# This archive created: Wed Mar 22 10:00:58 1989
export PATH; PATH=/bin:$PATH
echo shar: extracting "'amiga'" '(739 characters)'
if test -f 'amiga'
then
	echo shar: over-writing existing file "'amiga'"
fi
sed 's/^X//' << \SHAR_EOF > 'amiga'
X# Amiga termcap by Kent Polk
XAA|amiga|Amiga ANSI:\
X   :co#80:li#24:am:bs:bw:\
X   :#4=\E A:%1=\E?~:%i=\E[ @:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
X   :F1=\E10~:F2=\E11~:F3=\E12~:F4=\E13~:F5=\E14~:F6=\E15~:F7=\E16~:F8=\E17~:\
X   :F9=\E18~:FA=\E19~:LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
X   :al=\E[L:bl=:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:\
X   :do=\E[B:ho=\E[H:ic=\E[@:is=\E[20]:k1=\E0~:k2=\E1~:k3=\E2~:k4=\E3~:k5=\E4~:\
X   :k6=\E5~:k7=\E6~:k8=\E7~:k9=\E8~:k;=\E9~:kD=^?:kF=\E[T:kb=^H:kd=\EB:kl=\ED:\
X   :kr=\EC:ku=\EA:le=\E[D:mb=\E[7;2m:md=\E[1m:me=\E[0m:mh=\E[2m:mk=\E[8m:\
X   :mr=\E[7m:nd=\E[%dC:rs=\Ec:se=\E[0m:sf=\E[S:so=\E[7m:sr=\E[T:ue=\E[0m:\
X   :up=\E[A:us=\E[4m:ve=\E[\040p:vi=\E[\060\040p:
SHAR_EOF
if test 739 -ne "`wc -c 'amiga'`"
then
	echo shar: error transmitting "'amiga'" '(should have been 739 characters)'
fi
#	End of shell archive
exit 0