🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari
Article #2473

Question about C for the ST

#2473
From: pwp
Date: Wed, 12 Feb 1986 18:34
15 lines
1285 bytes
Does anyone know how to redirect standard output to the printer in
the Digital Research C compiler? The manual included with the ST developer
kit suggests that directing output to /dev/lp or to LST should work,
but in each case these produce a file of the same name.

Does anyone know how to redirect standard output to the printer from
within a C program?

The getchar routine (also gets) do not respond to the RETURN key, they just
wait for you to type another key (They treat CONTROL-RETURN as a return).
Does anyone know of a clean fix for this problem? At present I am using
Cconin and anding the result with 0X7F, but it takes a good bit of
reprogramming to get the effect of gets including the correct action on
CONTROL-h, etc.
Technical Details
Message-ID: <500036@iuvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!iubugs!iuvax!pwp

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: Notesfiles; site iuvax.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!iubugs!iuvax!pwp
From: pwp@iuvax.UUCP
Newsgroups: net.micro.atari
Subject: Question about C for the ST
Message-ID: <500036@iuvax.UUCP>
Date: Wed, 12-Feb-86 13:34:00 EST
Article-I.D.: iuvax.500036
Posted: Wed Feb 12 13:34:00 1986
Date-Received: Sat, 15-Feb-86 05:13:17 EST
Lines: 15
Nf-ID: #N:iuvax:500036:000:735
Nf-From: iuvax!pwp    Feb 12 13:34:00 1986