Übersicht
Stichwortsuche
History
Versionen
Kategorien
Alle Artikel
English
SuSE Linux: Version 4.4
Dosemu: Version 0.64.1
/etc/dosemu.conf
nötig:
#******************* 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 }Angenommen man hat unter Linux 3 Drucker (in der
/etc/princap
):
lp
, raw
und ascii
(wie vom
apsfilter eingerichtet) und hat in dosemu.conf
die folgenden Zeilen:
printer { options "%s" command "lpr -Plp " timeout 20 } printer { options "%s" command "lpr -Praw " timeout 20 } printer { options "%s" command "lpr -Pascii " timeout 20 }dann kann man unter DOS
Hinweis: Das Blank hinter dem Druckernamen ist wichtig!
Das %s
ist der Datei/Fifo-Name den Dosemu für die Umleitung
verwendet. Wenn man dann unter DOS was auf LPTx druckt, wird alles was weniger
als 20 Sekunden Pause zwischen den einzelnen IOs hat als ein
Druckvorgang betrachtet und ausgespoolt.
Nun kann es aber notwendig sein, die CRs aus dem Datenstrom auszufiltern, das kann man dann z.B. so tun:
printer { options "%s | lpr -Praw" command "killCR " timeout 20
killCR
sei hier ein Programm, das mit killCR datei
aufgerufen wird, datei
liest, alle CRs rausmacht und das Ergebnis
auf STDOUT ausgibt. Dafür könnte man recode
benutzen
(hat jemand ein Beispiel-Aufruf?).
Mit den BIOS Base Ports sollte man nicht rumspielen
Stichwörter: DOSEMU, DRUCKEN, LPR, PLP, LPT, PRINTER
Kategorien:
Applikationen
, Drucker
Übersicht
Stichwortsuche
History
Versionen
Kategorien
Alle Artikel
English