From: muts@pmcs.estec.esa.nl (Peter Mutsaers) Subject: Re: nethack 3.0 for Linux Date: Fri, 29 Jan 1993 17:47:40 GMT
>>On 27 Jan 1993 16:26:37 +0100, hosp@hoedur.uni-paderborn.de (Holger Spangardt) said:
Holger> My questions are:
Holger> 1. Is there a runnung system out there and where can I get the sources?
Holger> 2. In the ioctl.c file following defines have to be set to get the magic
Holger> numbers:
Holger> TIOCGLTC
Holger> TIOCSLTC
Holger> Are there just different names for these numbers under Linux?
Holger> Or Does anybody know the magic numbers to be entered in the termios.h?
I compiled it (btw I will upgrade to nethack 3.1 now). I did it with
BSD defined, *but* for tty linux is POSIX (which is almost SYSV). So
in tty.c etc. add some #if defined's to take the SYSV stuff. This will
work.
By the way the stop signal is not handled well. Nethack is in raw tty
mode and therefore assumes that a ^Z will not send a stop signal. This
way it is catched and nethack sends itself the SIGSTOP. But linux raw
tty does still send SIGSTOP for ^Z! Thus you must make a signal for
SIGSTOP yourself which will make a handler of the specific routine.