Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
/etc/dosemu.conf
:
#******************* PRINTERS ******************************************** # # QuickStart: # Printer is emulated by piping printer data to a file or via a unix # command such as "lpr". Don't bother fiddling with this configuration # until you've got DOSEMU up and running already. # # NOTE: Printers are assigned to LPT1:, LPT2:, and LPT3: on a one for # one basis with each line below. The first printer line is assigned # to LPT1:, second to LPT2:, and third to LPT3:. If you do not specify # a base port, the emulator will setup the bios to report 0x378, 0x278, # and 0x3bc for LPT1:, LPT2:, and LPT3: respectively. # # To use standard unix lpr command for printing use this line: # #printer { options "%s" command "lpr" timeout 20 }Lets assume you have installed three printers under Linux which you have entered in
/etc/princap
:
lp
, raw
and ascii
(as installed by the apsfilter)
You should have the following lines in dosemu.conf
:
printer { options "%s" command "lpr -Plp " timeout 20 } printer { options "%s" command "lpr -Praw " timeout 20 } printer { options "%s" command "lpr -Pascii " timeout 20 }then these printers are known under DOS:
Hint: The blank after the printer name is important!
The %s
is the file/fifo name that dosemu uses for the
deviation. If one prints something on LPTx under DOS, everything that has
a break of less than 20 seconds between the particular IOs is
considered as one printing process and spooled out.
However, it can be necessary to filter the CRs from the file stream, which can be done e.g. like this:
printer { options "%s | lpr -Praw" command "killCR " timeout 20Let
killCR
be a program, that is called with
killCR file
, reads file
, takes out every CRs
and diplays the result on STDOUT. For this, one could use
recode
(does anyone have an example call?).
One should not play with the BIOS base ports
Keywords: DOSEMU, PRINT, LPR, PLP, LPT, PRINTER
Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-dosemu_lpr
)
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch