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 <[EMAIL PROTECTED]>
An: [EMAIL PROTECTED]
On Wed, 4 Jun 2003 12:00:38 -0300
"Francisco Gomez" <[EMAIL PROTECTED]> 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
--- 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