Sam*_*Sam 6 printing emulation dosbox
我正在寻找具有打印支持的 dosbox 版本我看到了这个问题的答案Using a printer in Dosbox但我没有设法让它工作
小智 5
您应该能够使用来自http://ykhwong.xy.net/的正确配置的 SVN-Daum 版本的 DOSBox 进行打印
下面是从 Windows 8.1 打印的正确配置文件的相关部分,假设您要打印到 USB(使用打印对话框)而不是实际的 LPT 点阵打印机。
# Print from DOSBox using Windows print dialog
# dosbox-SVN-Daum.conf
# C:\Program Files (x86)\DOSBox SVN-Daum\TOOLS\Run DOSBox configuration.bat
[printer]
# printer: Enable printer emulation.
# printoutput: Output method for finished pages:
# png : Creates PNG images (default)
# ps : Creates Postscript
# bmp : Creates BMP images (very huge files, not recommend)
# printer : Send to an actual printer (Print dialog will appear)
# multipage: Adds all pages to one Postscript file or printer job until CTRL-F2 is pressed.
# timeout: (in milliseconds) if nonzero: the time the page will
# be ejected automatically after when no more data
# arrives at the printer.
printer=true
printoutput=printer
multipage=true
timeout=10000
[parallel]
# parallel1: parallel1-3 -- set type of device connected to lpt port.
# Can be:
# reallpt (direct parallel port passthrough),
# file (records data to a file or passes it to a device),
# printer (virtual dot-matrix printer, see [printer] section)
parallel1=printer
Run Code Online (Sandbox Code Playgroud)
现在您可以使用 Windows 打印对话框进行打印。就个人而言,我从 DOS 打印到PrimoPDF,然后在看到输出的 PDF 后打印。
让我感到困惑的一件事是,这multipage=true意味着您将被困在 Windows 中的“假脱机”状态,直到您按下 DOSBox“立即打印”热键CTRL+F2。您可以通过使用足够的超时来解决此问题。您将需要此超时以超过从程序打印的每页之间的毫秒数。我将我的设置为 10000 毫秒(10 秒)。
顺便说一下,您使用 Windows 打印对话框在 SVN-DAUM DOSBox 上设置了一次打印机。然后它是默认打印机,打印对话框不会再次提示您。当您重新启动 DOSBox ( Ctrl-Alt-Home)时,默认打印机会重置。
The*_*Wiz -1
echo Hello world! ^L > LPT1\nRun Code Online (Sandbox Code Playgroud)\n\n(这不是CtrlL(^插入符号) 和L)
这应该会Hello world!在连接到 LPT1 的打印机上打印并吐出页面。至于打印到USB打印机\xe2\x80\xa6就忘了吧。对于使用 Windows 网络共享的网络打印机,您可以将打印机“捕获”到端口 (LPT1-3) 并遵循相同/相似的语法。
dosbox默认版本不包括对并行端口的任何支持。有第 3 方版本添加了这些功能。可以在这里找到这样的一个: http: //home.arcor.de/hal-9000/
\n| 归档时间: |
|
| 查看次数: |
79358 次 |
| 最近记录: |