|Jul 6, 2009, 10:25 AM||#1|
Need help getting DOS program to print from Boxer
Hello! I AM NOT a programmer but have tried to get this to work with no luck so far. I want to avoid doing this within Parallels/Vista although I've gotten that to work. Situation is that I have an old DOS estimating program still used here and someone wants to use it on a new 13-inch MacBookPro. This person is very technically challenged so jumping between Parallels and OS X would be an invitation to lots and lots of frustration. The program works except printing. I've tried editing the config file changing the "serial1=" (many variations), putting a redirect line in the config file, all to no avail. I'm thinking that "serialx" is "COMx" in the DOS program and that perhaps an Applescript that would change "cu.modem" or "Internal Modem" to a USB printer would work. As you can see, one of the problems I've had is that I really don't know the verbage that either the DOS program uses or the Mac uses to specify a device. Any takers?
Following is a snippet of the config file for Boxer (DOSBOX) where the serial port is used. From my understanding so far, DOS doesn't use Parallel (LPT) but rather Serial (COM) for printing.
FROM CONFIG FILE:
# Set the type of device connected to serial port:
# disabled, dummy, modem, nullmodem, directserial.
# Additional parameters are supplied on the same line as
# parameter:value pairs. All types use the irq parameter.
# For directserial: realport (required), rxdelay (optional)
# For modem: listenport (optional)
# For nullmodem: server, rxdelay, txdelay, telnet, usedtr,
# transparent, port, inhsocket (all optional)
# Example: serial1=modem listenport:5000
ALSO FROM CONFIG FILE, AREA FOR SETTING UP AN AUTOEXEC.BAT PORTION TO LOAD:
# Any DOS commands you put under this heading will be executed
# when DOSBox emulation starts.
I've tried substituting the serial entries like this:
... where the "pap://..." is taken from the name of a printer as it is listed on the Mac in System Preferences, Print & Fax, Options & Supplies..., General tab, URL: (this printer is a networked printer, but I've tried the same method with a USB printer without success)
I've tried substuting the serial entries like this:
where the USB printer was showing up as tty.Patti-1 through a terminal device search (/dev/tty) - I read that "cu." is incoming and "tty" is the corresponding outgoing - when I typed a unique and simple name for the printer and the location in the Print & Fax menu, the default tty of "tty.modem" was replaced by "tty.Patti-1". I had already tried the default "tty.modem" and also cu.modem.
I realize all of this is not Mac programming and I think if I could use LPT1 or even COM1 in this config file anywhere and if I knew the device name the Mac had for LPT1's destination out of this, then an Applescript could redirect it to any printer. Problem is, this config file lists only "serial..." not "COM..." and no LPT whatsoever. Thanks for any input.
|Jul 6, 2009, 10:56 AM||#3|
where the final resolution for this user was a line in the config file as:
...where his usb serial adaptor was /dev/tty.usbserial
sounds then like I would need an adaptor then identify the name given to the adaptor by the Mac OS by using /dev/tty in terminal, yes?
Also, the DOS program does list LPT1 as an option for printing which was the selection that worked through Parallels/Vista, but I have no idea how to tell the DOS program what port to use - what it's called by the Mac - and how to put that in a config file for the DOS program in order to get a printout when choosing LPT1.
|Jul 6, 2009, 11:05 AM||#4|
That will work as the USBSeriel driver that goes with the adaptor will accept the standard old-school seriel commands, pump them over the USB bus and the adaptor converts them back.
LPT1 is the parallel port normally?
|Jul 6, 2009, 11:12 AM||#6|
|Jul 6, 2009, 11:42 AM||#7|
|Jul 6, 2009, 12:16 PM||#8|
I found a Keyspan USB to 2-port serial adaptor and the driver for it, unfortunately a USB printer that I've been using to test is USB only. I'll look through some old stuff and see if I can locate a desktop serial printer. Thanks so much for the help!
|Jul 6, 2009, 01:52 PM||#9|
I have some experience with Keyspan adapters. My software uses them to print on POS (Receipt) printers.
You can try with this name: "/dev/tty.USA19QW5b14P1.1", but I think they are changing this from version to version. My software uses some code to search for available serial ports, but you said you're not a programmer. Maybe there's some utility that can help you.
|Jul 6, 2009, 03:38 PM||#10|
I'll hookup the Keyspan that I found, "USA-28" and install the driver, then check terminal to see what "tty" listing it is, then I'll put that in the config file - maybe it will work. Thanks for the information - every bit helps!
Also, I downloaded the current driver today and believe I have an old printer that's still serial at home; enough for a smoke test.
Last edited by kainjow; Jul 6, 2009 at 09:24 PM. Reason: merged posts
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Windows 3.1 with Boxer||keblen||Windows, Linux & Others on the Mac||2||Dec 12, 2012 07:40 AM|
|Coward Chinese Boxer.||NZed||Community Discussion||3||Aug 14, 2012 10:37 PM|
|Coward Chinese boxer.||NZed||Wasteland||11||Aug 13, 2012 09:09 PM|
|Recommendations for a program to create print advertisement?||Romeo604||Mac Basics and Help||1||Jul 27, 2012 08:06 AM|
All times are GMT -5. The time now is 09:25 PM.