[TUHS] V6 Console IO
Random832
random832 at fastmail.com
Sat Jul 25 12:45:34 AEST 2020
On Fri, Jul 24, 2020, at 13:15, Clem Cole wrote:
> On Fri, Jul 24, 2020 at 12:39 PM Random832 <random832 at fastmail.com> wrote:
> > You'll have a hard time exiting your program if you use raw mode -
> cbreak should be enough, and in that case ctrl-c will still work [but
> even in cbreak mode I believe there is no way to send "EOF".]
> There is no such thing as cbreak in sixth edition.
> http://man.cat-v.org/unix-6th/1/stty
> It's raw or cooked. Life is more interesting ;-)
my mistake, though that does mean the rest of my point definitely stands: the program will need to have some other way (either a sequence of characters input or e.g. some amount of time passing with no input - did v6 have any mechanism like alarm?) to make the program recognize the end of its input.
More information about the TUHS
mailing list