[comp.lang.pascal] Printing in Turbo Pascal

leonard@bucket.UUCP (Leonard Erickson) (02/01/90)

ld@vax3.iti.org (Larry Dunn) writes:


<	I am working on a project using Turbo Pascal.  One
<	of the requirements is that I send a line of text
<	to a serial printer.  The program is very large
<	~30k compiled lines of code.

<	The Institue has bought Async Manager.  The problem
<	with Async Manager is that it addes too much code
<	to compile the program (OUT OF MEMORY).

<	I would like to know if there is a way (a small way)
<	to write text to COM ports.

Sure, use DOS to re-route LPT1: to COM1:!

mode com1:9600,n,8,1,p
mode lpt1:=com1:

TP will cheerfully send the data to LPT1 and DOS will send it to COM1
instead. True, your program isn't doing it, but it should suffice for
your purposes.
-- 
Leonard Erickson		...!tektronix!reed!percival!bucket!leonard
CIS: [70465,203]
"I'm all in favor of keeping dangerous weapons out of the hands of fools.
Let's start with typewriters." -- Solomon Short