🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.usg
Article #226

bug in tty driver?

#226
From: Ron Williams
Date: Sat, 28 Sep 1985 02:35
27 lines
1196 bytes
Description:

The following combination of events seems to cause reads of a tty to return
EOF (VAX System V, Rel 2.0, Version 2; but may apply to your system as well):

1) type a character, then backspace
2) have your terminal set into raw mode, then back to canonical mode

This problem arises (for example), if I type vnews<CR>, then n^H, and vnews
decides I have no news.

Prove it:

Place the following text in a file called "foo".
	sleep 10
	: remember previous settings
	x=`stty -g`
	stty raw
	stty $x

Now type:
sh foo<CR>
x^H<no CR>
After 10 seconds, your shell will exit.  This applies to both the tty driver
and the sxt driver.
					Ron Williams
					utzoo!hcrvax!hcrvx1!ronald
Technical Details
Message-ID: <1251@hcrvx1.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!hcrvax!hcrvx1!ronald

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site hcrvx1.UUCP
Path: arc1-ca.pugleaf.net!utzoo!hcrvax!hcrvx1!ronald
From: ronald@hcrvx1.UUCP (Ron Williams)
Newsgroups: net.bugs.usg
Subject: bug in tty driver?
Message-ID: <1251@hcrvx1.UUCP>
Date: Fri, 27-Sep-85 22:35:11 EDT
Article-I.D.: hcrvx1.1251
Posted: Fri Sep 27 22:35:11 1985
Date-Received: Sat, 28-Sep-85 00:58:27 EDT
Organization: Human Computing Resources, Toronto
Lines: 27