Hi Lisandro,

> Hi! I am using FreeDOS + dosemu in Linux to make some old but very
> valuable apps work. Please, let me warn you that this may be a dosemu
> problem/bug, but I find the project quite "quiet", so I am taking the
> odds to ask here :-)
>
> So far, the apps are doing *splendid* except in printing. Somehow,
> every time I close dosemu, garbage is sent to the printer, but only if
> one of this apps were ran.
> I have been searching the web to no avail.
>
> The only change I did to the standard dosemu + freedos Debian packages
> is increasing the number of files and buffers in config.sys. I
> actually added a 0 to the end of the default values, wich may be too
> much, perhaps.
>
> As extra data, my printer is an Epson LX-810 working trough CUPS. The
> same behaviour can be obtained either redirecting dosemu's printer
> output to a file.
>
> So, if you have any idea that I could try to fix this, I will really
> be happy to test them.

You could probably just switch off printing in dosemu if you dont need
to print anything? Just print into a file and then print that later,
manually then. My configuration (.dosemurc / dosemu.conf) now says:

$_printer = "file file"

Which means LPT1 and LPT2 print to "file" defined in /etc/printcap.
Hmm. Now that I look at it, my printcap no longer has "file" :-p
Which proves that I hardly ever print in DOSEMU... Before, I had:

$_printer = "deskjetbw"

Which is the cups name of printing to my Deskjet in greyscales. The
default is $_printer = "lp" as far as I remember...

$_printer_timeout = (20) # idle time in seconds before spooling out

Might also be interesting. Note that DOSEMU probably assumes that
you print plain text without any graphics or printer control codes.
The layout is then done by some default text handler of CUPS, e.g.
a2ps with 2-up layout. If you want to print with graphics, try to
tell your DOS apps that you have a laser printer. CUPS will then,
hopefully, automatically recognize that you sent postscript to it.

Once when I was working on GRAPHICS (GRAPH-PS, GRAPHPIN, GRAPH-HP)
I think I had hand-edited the /etc/printcap or similar so the raw
data ended up in a file which I then "harvested" to have a look at
the raw contents to check the escape sequences etc. From that time
I also have a simplistic parser for ESC/P2 graphics data to convert
that data into a PCX picture or similar. You can also use PPM tools
or other general purpose image converters to "digest" printer data.

Eric


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to