[rec.games.hack] Nethack on a 3B2 ... how to do it.

rwhite@nusdhub.UUCP (Robert C. White Jr.) (12/17/87)

Hi all you nethack people,

	I have been reading the cries of people who have been
having problems useing nethick2.2 on a 3B2 computer.  I am
running a 3B2/600 here.  These are the things to do:

1)  remove the sprintf definition from extern.h
2)  find the definition of "ospeed" in termcap.c and repeat the
definition line outside the ifdef block [i.e. short ospeed]
3)  find the "terminal must backspace" message in termcap.c  the
tget() call above this message (NOT the tgetflag) tries to get
"bs" which does not exist in the terminfo definitions for 3B2
terminals.  Change this to "le"

These last two are the ones people seem to be messing up the
most:
	A) !!!!!!! use Makefile.unix _NOT_ Makefile.att.  The
latter file just trashes the whole thing.
	B)  When you edit config.h you MUST change the two
typedef refrences in the middle of the file from char and
unsigned char to short int and unsigned short in as per the
directions otherwise you will get core dumps and memory faults.

	These are all in addition to the normal setups [i.e.
commenting out "#define BSD" and un-commenting "#define SYSV"
and such.]

Good luck, and enjoy,
Rob.

allbery@ncoast.UUCP (Brandon Allbery) (12/24/87)

As quoted from <567@nusdhub.UUCP> by rwhite@nusdhub.UUCP (Robert C. White Jr.):
+---------------
| 	I have been reading the cries of people who have been
| having problems useing nethick2.2 on a 3B2 computer.  I am
+----------------------------^  No comment.  ;-)
| 3)  find the "terminal must backspace" message in termcap.c  the
| tget() call above this message (NOT the tgetflag) tries to get
| "bs" which does not exist in the terminfo definitions for 3B2
| terminals.  Change this to "le"
+---------------

Under terminfo, you *should* check for "kb" and, if it's missing, assume ^H.
The "Terminal must backspace" message should probably only come up if the
terminal's "kb" is NOT ^H.  (You *could* allow any *single* control char, but
I seem to recall a comment from Mark Horton (?) in the termcap for "sexidy":
"this guy's in for a surprise on V7!"  (kb was ^S))

+---------------
| These last two are the ones people seem to be messing up the
| most:
| 	A) !!!!!!! use Makefile.unix _NOT_ Makefile.att.  The
| latter file just trashes the whole thing.
+---------------

I've already requested that this be changed to Makefile.3b1 -- since that's
what it is.  Major botch on the part of whoever put nethack2.2 together.
-- 
	      Brandon S. Allbery, Moderator of comp.sources.misc
 {hoptoad,harvard!necntc,cbosgd,sun!mandrill!hal,uunet!hnsurg3}!ncoast!allbery
     [This space reserved for future quotes and similar brain twisters.]