From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claudia Neumann Subject: Re: Printing from dosemu via CUPS Date: Fri, 15 Aug 2003 14:27:20 +0200 Sender: linux-msdos-owner@vger.kernel.org Message-ID: <200308151427.20126.dr.claudia.neumann@gmx.de> References: <20030814000511.53757.qmail@web10708.mail.yahoo.com> Reply-To: dr.claudia.neumann@gmx.de Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="------------Boundary-00=_KLUNS8UJUOXNTY5TW1YC" Return-path: In-Reply-To: <20030814000511.53757.qmail@web10708.mail.yahoo.com> List-Id: To: DOSemu Mailingliste Cc: Samuel Falvo --------------Boundary-00=_KLUNS8UJUOXNTY5TW1YC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi Samuel, Am Donnerstag, 14. August 2003 02:05 schrieb Samuel Falvo: > I have NDO configured with a Postscript-compatible printer using LPT1, and > a Postscript-compatible printer to File. When I print to a file, it asks > me for the filename, and once that happens, it emits the Postscript file. > Running that file through CUPS manually using Linux' "lp" command works > great. It has issues with fonts though... :( > But when I try to use the printer directly with LPT1, it fails utterly and > outright. I'm pretty confident that it's a xdosemu configuration problem on > my > part, but I've not seen any documentation on this either in Google's > database,the GEOS newsgroups, *OR* in the dosemu FAQ or other available > documentation. I solved the problem with CUPS: in CUPS you habe to install (http://localhost:631/admin) a printer with driver "raw". Name the printer "lp". This driver must be the default printer and the first in the row. You will get a file /etc/printcap.cups. Copy this file to /etc/printcap. In DOSemu you wright: $_printer = "lp" $_printer_timeout = (1) # the higher the number, the longer you will wait for the output. If this doesn't work, your CUPS print filter cames in the way. Here the advice of Grigory Batalov: ----------------------------------------------------------------- Von: Grigory Batalov An: linux-msdos@vger.kernel.org On Wed, 4 Jun 2003 12:00:38 -0300 "Francisco Gomez" wrote: > I have a problem when I try to print in a matrix dot printer. > I am working with Mandrake 9.0 and a MS Cobol application running on the > dosemu. > If I send to print letters o numbers I have no problem, but if I send > special simbols, like control characters (End of Page, bold font) the > printer doesn't work. > Could you help me with this? Is it possible to send anything I want directly > to the LPT1 port without pass through the linux, like a dir > lpt1 in DOS? Hi! It seems that print filter corrupts your output. Try attached patch for global.conf (it adds '-l' option to print command) and run dosemu like this: dosemu -F global.conf ---------------------------------------------------------------------------- Regards Claudia --------------Boundary-00=_KLUNS8UJUOXNTY5TW1YC Content-Type: text/x-diff; charset="iso-8859-1"; name="global.conf.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="global.conf.diff" --- global.conf.orig 2003-01-15 12:37:15 +0300 +++ global.conf 2003-06-04 21:51:36 +0400 @@ -612,7 +612,7 @@ vnet $_vnet if (strlen($_printer)) foreach $xxx ($LIST_DELIM, $_printer) - $xxx = "'-P", $xxx, " %s'"; + $xxx = "'-l -P", $xxx, " %s'"; printer { options $$xxx command "lpr" timeout $_printer_timeout } done endif --------------Boundary-00=_KLUNS8UJUOXNTY5TW1YC--