Serial Printer on Terminal (Problems)

Gregg Houck SysOp gah at blft1.UUCP
Tue May 3 07:39:00 AEST 1988


Am having a small problem using a serial printer off of a remote
terminal.  Here is the setup:

	* IBM AT 6Mhz
	* Consensys Powerports Board
	* Wyse 50 Terminals
	* Oki-Data MicroLine 294 serial printer.
	* All setup using XON/XOFF Protocall....
	* Termianl speed set or tested at 9600 and 38.4kb..
	* Printer Aux port tested at 9600 and 19.2kb..

Now, Trying to send a printjob to the printer works just fine until you
reach the end.  After printing a question is to come up on the screen
and the printer should be off.  What happens is that the question sent to
the screen shows on the printer.  After this the printer does shut off.
We are using the Basmark basic compiler and interfacing the printer is
by using the LPR variable..  Here is how I have the link setup.

	* I set LPR="cat > lcat > /dev/ttyh?"

The C program lcat.c is as follows..

#include <stdio.h>
main()
{
		int c;
	putchar(24); /* Turn on Transparent print */
	while ((c = getchar() ) != 126)
		putchar(c);
	putchar(20); /* Turn Transparent print off */
}

Can anyone help?  I'm at a loss and the companies are of little or
no help..

Thanks in advance.

Gregg


Gregg Houck  :  ..psuvax1!blft1!gah        |    NITTANY LION COUNTRY
HOUCK'S COMMUNICATIONS and ELECTRONICS     |       GOoooo LIONS!
(814)-355-7648  ----  (800)-544-8450       |         WE'RE #1



More information about the Comp.unix.xenix mailing list