delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/14/06:24:11

Date: Wed, 14 Jan 1998 13:24:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Joe Davidson <dream_acres AT compuserve DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Printing
In-Reply-To: <01bd1de2$d8040b40$08e1aec7@my-computer>
Message-ID: <Pine.SUN.3.91.980114132340.8730Q-100000@is>
MIME-Version: 1.0

On Tue, 13 Jan 1998, Joe Davidson wrote:

> Could someone help with with showing me how to do some somple printing
> ruitines?  I would assume that use bios_print(), but I am not sure, or is
> there an easier way to redirect stdout to the printer or buffer temporarily
> so I can do something like cout << data; and have it go to the
> printer/buffer?

`_bios_printer' or `biosprint' are for low-level interfce to the
printer.  If you need to print plain text, it is much better and
easier to either use redirection on the command line ("foo >> prn") or
use the built-in stream `stdprn'.  Alternatively, open the name of the
printer port ("PRN", "LPT1", etc.) as if it were a file and use that.

- Raw text -


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