cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/23/18:50:30

Date: Thu, 23 Apr 1998 18:50:25 -0400 (EDT)
Message-Id: <199804232250.SAA10977@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: mhaavi AT sci DOT fi
CC: djgpp AT delorie DOT com
In-reply-to: <353ec46f.9950927@news.sci.fi> (mhaavi@sci.fi)
Subject: Re: Interfacing with printer

> When I fopen() "lpt1", it gives no error even if no printer is
> connected.  When I fprintf() to the *FILE fopen gave me, it happily
> returns the number of characters written, whether they really print
> or not.

I've seen DOS work this way too.  Better than suddenly printing
everything when you connect the printer!

You can use the biosprint() functions to query the status of the
printer port lines.

C:\> info libc a biosprint

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019