Article View: net.games.hack
Article #517Re: Trouble w/ I/O in Hack 1.0.2 on SVR2
From: hmm
Date: Mon, 29 Apr 1985 14:26
Date: Mon, 29 Apr 1985 14:26
18 lines
1305 bytes
1305 bytes
In the SYSV Terminal driver, the field for the EOF character has another meaning in raw i/o: it denotes a minimal char count. I assume you have EOF set to ctl-D, the ASCII code for this is 4. Guess what happens ? read() returns when 4 chars are read. Simple fix: Set EOF to ctl-A (ASCII 1) before you play hack. Don't forget to reset it after playing ! Better fix: Find the terminal initialization routine in hack (sorry, I haven't got the time to do it myself) and fix it. Maybe you should post it, since this bug should occur on all SYSV hacks... Hans-Martin Mosner Universitaet Dortmund (Germany) ihnp4!hpfcla!hpbbn!unido!hmm seismo!mcvax!unido!hmm
Technical Details
Message-ID:
<nf38300007@unido.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!hmmReferences:
<414@sftri.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: notesnews 0.1 (unido 12/05/84); site unido.UUCP Path: arc1-ca.pugleaf.net!utzoo!linus!philabs!cmcl2!seismo!mcvax!unido!hmm From: hmm@unido.UUCP Newsgroups: net.games.hack Subject: Re: Trouble w/ I/O in Hack 1.0.2 on SVR2 Message-ID: <nf38300007@unido.UUCP> Date: Mon, 29-Apr-85 10:26:00 EDT Article-I.D.: unido.nf38300007 Posted: Mon Apr 29 10:26:00 1985 Date-Received: Wed, 1-May-85 06:01:23 EDT References: <414@sftri.UUCP> Sender: notes@unido.UUCP Lines: 19 Nf-ID: #R:sftri:-41400:unido:38300007:000:668 Nf-From: unido!hmm Apr 29 12:26:00 1985