Hello,

I have read various discussions on transparent printing in dosemu and have 
been unable to find a thread with an answer that fits my scenario.

I am using dosemu 1.0.2 and MS-DOS 6.22 on SuSE Linux 7.3 with the 2.4.16 
kernel. I have been successful in getting dosemu to run my dos application. I 
have it running on the console, using SSH, and through Sherwood 7000 series 
terminals connected to 4 port serial cards (Longshine LCS-8880 and the like). 
However, next I needed to get printing to work. I can print to the printer on 
/dev/lp0 - not a problem. Remote printers using TCP/IP, no problem. But, 
printing to the printer slaved to the serial terminal would not work while 
dosemu was running. If I was on a terminal at a login prompt or logged in to 
any linux app/shell... no problem I could print to the slaved printer all 
day. However, as soon as I would run dosemu, the ESC sequences sent seemed to 
be being blocked or the tty (/dev/ttyS4) was locked... I couldn't get lpd/lpr 
to overcome and I could not find a switch or parameter for dosemu that would 
resolve the issue.

So, after a some research, I noticed a thread ( Re: dosemu cannot sends 
char(27) ) dated 2001-05-15 from Eric W. Biederman. He goes on to explain 
that one could modify lpt.c and terminal.c to allow for calls to lpt1 to be 
redirected to the terminal's slaved printer by dosemu. I looked at the 2 
files and am unsure how to approach implementing this... So, now I am asking 
for help.

Does anyone have the code to allow for jobs sent to lpt1 in dosemu to be sent 
back to the terminal prepended with the appropriate ESC sequence ( ESC[5i in 
my case) to tell the terminal to send to the printer, then at the end of the 
job, send the appropriate sequence ( ESC[4i in my case) to tell the terminal 
to start sending back to the screen? Or is there a setting in the dosemu.conf 
or global.conf that can be modified to achieve the same result?

Or, does anyone have any better suggestions on how to get this to work. Also, 
understanding that the person who is using a terminal will only need to run 
this dos application and print only to the printer attached to their terminal.

Thanks in advance.

Regards,

Jay Pfeifer
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to