Date: Wed, 14 Jan 1998 13:24:00 +0200 (IST) From: Eli Zaretskii To: Joe Davidson cc: djgpp AT delorie DOT com Subject: Re: Printing In-Reply-To: <01bd1de2$d8040b40$08e1aec7@my-computer> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.