🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

3 total messages Started by Mark Modig Tue, 23 Apr 1985 23:24
Trouble w/ I/O in Hack 1.0.2 on SVR2
#484
Author: Mark Modig
Date: Tue, 23 Apr 1985 23:24
20 lines
1654 bytes
OK, I give.  I have been trying to get Hack 1.0.2 running on a 3B20
w/ SVR2.  The program appears to start ok, but you must enter
exactly four commands to get any response. [To clarify, this begins
from the beginning-- When it asks if you are experienced, you would
have to enter, for example, y, a return, and two more characters. 
Up until this time, there is no output to the terminal.  When you
have entered the fourth character, the y is echoed properly, the
return would be taken as an answer to the next question {what
character are you?, etc....}]
Then to get any more action, you have to enter four more
commands, and until you do, there is no output to your terminal.
Once you enter four commands, it executes them, and waits until it
has four more.  It's always four, as near as I can tell. I've tried
using setvbuf to make all I/O unbuffered, but it doesn't seem to
help.  The input appears to be read OK, just in these weird four
command chunks.  (I've just tried simple one character commands so
far, e.g. movement.)  Anybody have any ideas?

Mark Modig
ihnp4!sftri!mom
Re: Trouble w/ I/O in Hack 1.0.2 on SVR2
#493
Author: Ron Williams
Date: Thu, 25 Apr 1985 22:45
13 lines
1193 bytes
<The line-eater comes and takes all your possesions.>
Mark Modig asks:

> OK, I give.  I have been trying to get Hack 1.0.2 running on a 3B20
> w/ SVR2.  The program appears to start ok, but you must enter
> exactly four commands to get any response.

This is because of the insane way termio(7) has been implemented.
If you read carefully the section describing ICANON, MIN, and TIME,
you will see that your EOF character, (ascii 04), determines how many
characters must be typed before a read returns when canonical processing
(cooked mode) is disabled.  If you don't understand this section, just
set your EOF character to be ^A.
Re: Trouble w/ I/O in Hack 1.0.2 on SVR2
#517
Author: hmm
Date: Mon, 29 Apr 1985 14:26
18 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads