Mail Archives: djgpp/1998/01/14/06:24:11
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 -