Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ncar!gatech!udel!burdvax!psuvax1!blft1!gah From: gah@blft1.UUCP (Gregg Houck SysOp) Newsgroups: comp.unix.xenix Subject: Serial Printer on Terminal (Problems) Message-ID: <293@blft1.UUCP> Date: 2 May 88 21:39:00 GMT Lines: 42 Keywords: xenix 2.2.1 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 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