🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #28342

Raw input in C query

#28342
From: Steven Pemberton
Date: Mon, 21 Sep 1987 16:42
22 lines
1383 bytes
A number of related questions. They all refer to the Alcyon compiler.

How do you set stdin for raw input? I see in the library that there is
a routine called sggty, but can't find any documentation for it. By
the way, I know about Bconin and Cconin, but I don't want to go
changing old programs to use those.

Everyone says that Bconin ignores ^C ^S and ^Q, but I wrote a program
that just reads characters and writes them again, and when I run it
and then lean on the ^C key (so it auto repeats), the program still
stops with an interrupt. Am I doing something wrong?

How do you tell if stdin has been redirected (by a shell for instance)
before the program was started? Isatty definitely doesn't work, much
to my surprise.

Last question: how do you tell which version of the compiler you've
got?

Many thanks for any help on these questions.

Steven Pemberton, CWI, Amsterdam; steven@cwi.nl
Technical Details
Message-ID: <68@piring.cwi.nl>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!mcvax!steven

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!seismo!mcvax!steven
From: steven@cwi.nl (Steven Pemberton)
Newsgroups: comp.sys.atari.st
Subject: Raw input in C query
Message-ID: <68@piring.cwi.nl>
Date: Mon, 21-Sep-87 12:42:27 EDT
Article-I.D.: piring.68
Posted: Mon Sep 21 12:42:27 1987
Date-Received: Tue, 22-Sep-87 04:19:56 EDT
Reply-To: steven@piring.UUCP (Steven Pemberton)
Organization: CWI, Amsterdam
Lines: 22