[rec.games.hack] PC NetHack termcap problem

creps@silver.bacs.indiana.edu (Steve Creps) (12/22/87)

   A couple of people have had problems with the termcap for the PC
NetHack executables I posted yesterday. The problem is that the termcap
code isn't smart enough to use a "tc" entry. Below is a replacement
termcap file, which should now work. It also adds entries for monochrome
systems. To use termcap, type "set TERM=_____" where _____ is one of
ansi-color, nansi-color, ansi-mono, or nansi-mono. Also put the termcap
file somewhere in your path. One more thing I didn't mention before:
you need LOTS of memory to run this program. I'm using it on a 640K
machine, but haven't tried it for less memory.
   By the way, the error message caused by the termcap problem would
have started out with "OOPS."

-	-	-	-	-	-	-	-	-
Steve Creps on the VAX 8650 running Ultrix 2.0-1 at Indiana University.
	creps@silver.bacs.indiana.edu
"F-14 Tomcat! There IS no substitute."

-	termcap	-	cut	-	here	-	-	-	-
#
# ANSI Color
#
ansi-color:\
	:co#80:\
	:li#24:\
	:cl=\E[2J:\
	:bs:\
	:ho=\E[H:\
	:cm=\E[%i%2;%2H:\
	:up=\E[A:\
	:xd=\E[B:\
	:nd=\E[C:\
	:bc=\E[D:\
	:ce=\E[K:\
	:ti=\E[44;37m:\
	:te=\E[0m:\
	:so=\E[31m:\
	:se=\E[44;37m:\
	:us=\E[1m:\
	:ue=\E[m:\
	:hi=\E[32m:\
	:he=\E[44;37m:
#
# NANSI Color
#	This is a termcap for the NANSI.SYS device driver.
#	It is the same as the ANSI termcap, except NANSI supports
#	line insert (al) and delete (dl) while ANSI does not.
#
nansi-color:\
	:co#80:\
	:li#24:\
	:cl=\E[2J:\
	:bs:\
	:ho=\E[H:\
	:cm=\E[%i%2;%2H:\
	:up=\E[A:\
	:xd=\E[B:\
	:nd=\E[C:\
	:bc=\E[D:\
	:ce=\E[K:\
	:ti=\E[44;37m:\
	:te=\E[0m:\
	:so=\E[31m:\
	:se=\E[44;37m:\
	:us=\E[1m:\
	:ue=\E[m:\
	:hi=\E[32m:\
	:he=\E[44;37m:\
	:al=\E[L:\
	:dl=\E[M:
#
# Monochrome NANSI
#
nansi-mono:\
	:co#80:\
	:li#24:\
	:cl=\E[2J:\
	:bs:\
	:ho=\E[H:\
	:cm=\E[%i%2;%2H:\
	:up=\E[A:\
	:xd=\E[B:\
	:nd=\E[C:\
	:bc=\E[D:\
	:ce=\E[K:\
	:ti=\E[m:\
	:te=\E[m:\
	:so=\E[1m:\
	:se=\E[m:\
	:us=\E[1m:\
	:ue=\E[m:\
	:al=\E[L:\
	:dl=\E[M:
#
# monochrome ANSI
#
ansi-mono:\
	:co#80:\
	:li#24:\
	:cl=\E[2J:\
	:bs:\
	:ho=\E[H:\
	:cm=\E[%i%2;%2H:\
	:up=\E[A:\
	:xd=\E[B:\
	:nd=\E[C:\
	:bc=\E[D:\
	:ce=\E[K:\
	:ti=\E[m:\
	:te=\E[m:\
	:so=\E[1m:\
	:se=\E[m:\
	:us=\E[1m:\
	:ue=\E[m:\