many dosemu 1.3.3 woes
Hi,
I have difficulties in getting a legacy application (Rockwell Tripfax, a data collector collecting data via serial port from 'blackboxes' on board heavy vehicles) working under dosemu and would appreciate your help. (see also my earlier posting).
I tried dosemu 1.2.2 as supplied with SuSE Linux V9.2, then dosemu 1.3.2, and have now installed dosemu 1.3.3. The installed dos is MS-DOS 6.0. The errors I experience are most likely due to my misinterpretation of the documentation, any clues to where I go wrong will be highly appreciated.
1. Floppy disk access.
I can read and write to floppy disks using the native dos commands type, copy etc. Running msbackup or restore from the command prompt works; the application uses also uses msbackup/restore. When I choose the restore function from the application, I get prompted with 'Place first disk in drive 1' and thousands of ERROR:
directory: sector not found on the xterm from which I started dosemu.
2. Escape in -I keystroke
<ESC> (\^[) and <enter> (\r) is not recognised. The <esc> and <return> keys work interactively. I have installed stuffit, where the <esc> and <enter> equivalents 27 and 13 both work. I would prefer to use the -I keystroke sequence rather than the stufiit solution.
3. Mouse
When the mouse leaves the X Dos in a Box window and re-enters it again, a keystroke 1 is generated and echoed.
4. -U inpipe:outpipe
The pipes were generated with mkfifo -m 666. This works in conjunction with dosctrl, with the same exceptions as with -I keystroke (<esc> and <enter>). I most likely assume wrongly that plain text can be sent to the inpipe, because characters sent to the inpipe via bash echo or printf appear to be accepted by dosemu but are ignored, at least nothing is echoed back. I deduce that it is accepted by dosemu because the echo or printf command returns to the prompt. How do I send keystrokes to dosemu's inpipe using shell commands?
5. Line drawing graphics
These look all ok if used with dosemu -X but do not work at all if used on a console or without the X option. The application's display is virtually useless and all mangled up.
Unfortunately I do not have the source code of the application, so I will not be able to change anything there. The test setup I have consists of a dos fat partition which allows me to boot directly into dos. There the application works as it should. The same partition gets also used for dosemu (via a symlink).
Thanks for your help.
Peter
Quoted 8 lines · Peter Sutter
1. Floppy disk access.
I can read and write to floppy disks using the native dos commands type, copy etc. Running msbackup or restore from the command prompt works; the application uses also uses msbackup/restore. When I choose the restore function from the application, I get prompted with 'Place first disk in drive 1' and thousands of ERROR:
directory: sector not found on the xterm from which I started dosemu.
try to run with -D+Dd and report the contents of boot.log, preferably as a bug report at dosemu.sourceforge.net.
Quoted 6 lines
2. Escape in -I keystroke
<ESC> (\^[) and <enter> (\r) is not recognised. The <esc> and <return> keys work interactively. I have installed stuffit, where the <esc> and <enter> equivalents 27 and 13 both work. I would prefer to use the -I keystroke sequence rather than the stufiit solution.
From your other report the initial \r's *are* recognized, but after a while they are forgotten. Perhaps the DOS app flushes the keyboard. Try to play with a delay setting \pn; where n is the number of UNIX ticks.
Quoted 3 lines
3. Mouse
When the mouse leaves the X Dos in a Box window and re-enters it again, a keystroke 1 is generated and echoed.
Even at the DOS prompt? That never happened to me.
Quoted 10 lines
4. -U inpipe:outpipe
The pipes were generated with mkfifo -m 666. This works in conjunction with dosctrl, with the same exceptions as with -I keystroke (<esc> and <enter>). I most likely assume wrongly that plain text can be sent to the inpipe, because characters sent to the inpipe via bash echo or printf appear to be accepted by dosemu but are ignored, at least nothing is echoed back. I deduce that it is accepted by dosemu because the echo or printf command returns to the prompt. How do I send keystrokes to dosemu's inpipe using shell commands?
The -U inpipe:outpipe is entirely meant for things like dosctrl... really to control DOSEMU, it was originally written to be used by a KDE frontend named kdos, but that was never finished.
You can as an alternative to keystrokes (in 1.3.3 or newer this works again), simply redirect stdin, like
dosemu.bin -I 'video{none}' < infile
(the "dosemu" script was fixed only in CVS to handle this)
where you use direct \r's (^M)s in the infile for "enter" (similar for esc). But it doesn't give you any benefit over keystrokes I think.
Quoted 4 lines
5. Line drawing graphics
These look all ok if used with dosemu -X but do not work at all if used on a console or without the X option. The application's display is virtually useless and all mangled up.
Possibly you have more than 80 columns. In the console try
stty cols 80 rows 25
and the xterm can be resized. Also, version 1.2.x does not handle UTF-8 terminals correctly (>=1.3.2 does).
Bart
Many thanks Bart, I really appreciate your response.
Peter
Quoted 10 lines · Bart Oldeman
Quoted 8 lines · Peter Sutter
1. Floppy disk access.
I can read and write to floppy disks using the native dos commands type, copy etc. Running msbackup or restore from the command prompt works; the application uses also uses msbackup/restore. When I choose the restore function from the application, I get prompted with 'Place first disk in drive 1' and thousands of ERROR: directory: sector not found on the xterm from which I started dosemu.
Quoted 2 lines
try to run with -D+Dd and report the contents of boot.log, preferably as a bug report at dosemu.sourceforge.net.
I will do this over the next few days.
Quoted 8 lines
Quoted 8 lines
2. Escape in -I keystroke
<ESC> (\^[) and <enter> (\r) is not recognised. The <esc> and <return> keys work interactively. I have installed stuffit, where the <esc> and <enter> equivalents 27 and 13 both work. I would prefer to use the -I keystroke sequence rather than the stufiit solution.
Quoted 6 lines
Quoted 2 lines
From your other report the initial \r's *are* recognized, but after a
while they are forgotten. Perhaps the DOS app flushes the keyboard. Try to play with a delay setting \pn; where n is the number of UNIX ticks.
I tried the delays, but it appears that the menu part of the application accesses the keyboard directly (bios?) and also writes directly to the screen memory. I deduce this because the \r and \^[ are ignored only on the menu part of the application, but get accepted in other parts. Its one of these antique Borland c++ applications, and I have no source code.
Quoted 6 lines
Quoted 4 lines
3. Mouse
When the mouse leaves the X Dos in a Box window and re-enters it again, a keystroke 1 is generated and echoed.Even at the DOS prompt? That never happened to me.
This was a hiccup on my system and corrected itself after a re-boot. Sometimes the stability of Linux and the resulting reluctance of re-boots sometimes has its drawbacks :-)
Quoted 20 lines
Quoted 11 lines
4. -U inpipe:outpipe
The pipes were generated with mkfifo -m 666. This works in conjunction with dosctrl, with the same exceptions as with -I keystroke (<esc> and <enter>). I most likely assume wrongly that plain text can be sent to the inpipe, because characters sent to the inpipe via bash echo or printf appear to be accepted by dosemu but are ignored, at least nothing is echoed back. I deduce that it is accepted by dosemu because the echo or printf command returns to the prompt. How do I send keystrokes to dosemu's inpipe using shell commands?The -U inpipe:outpipe is entirely meant for things like dosctrl... really to control DOSEMU, it was originally written to be used by a KDE frontend named kdos, but that was never finished.
You can as an alternative to keystrokes (in 1.3.3 or newer this works again), simply redirect stdin, like
Quoted 6 lines
dosemu.bin -I 'video{none}' < infile
(the "dosemu" script was fixed only in CVS to handle this)where you use direct \r's (^M)s in the infile for "enter" (similar for esc). But it doesn't give you any benefit over keystrokes I think.
Can infile be a pipe to which I can send characters or does it have to be a real physical file? The application is normally up 24 hours in datacollection mode and I would like a method to terminate it properly 'on demand' to extract data and for maintenance. A series of escapes followed by a "q" would do this. As a last resort I could terminate it with kill but am a bit hesitant to do this.
Quoted 10 lines
Quoted 5 lines
5. Line drawing graphics
These look all ok if used with dosemu -X but do not work at all if used on a console or without the X option. The application's display is virtually useless and all mangled up.Possibly you have more than 80 columns. In the console try stty cols 80 rows 25
and the xterm can be resized. Also, version 1.2.x does not handle UTF-8 terminals correctly (>=1.3.2 does).
I set the vga mode of the console to 0xf00 (80x25 characters), this has solved this problem.
Some of the systems are located remotely, for maintaining the vehicle configuration database, I need a way to run dosemu via ssh from a windows client. I use putty for the ssh connection and this works fine. Changing the console to 0xf00 fixed the mangled display for putty too. The only remaining problem I have now is to get putty starting up with 25 lines rather than 24.
Quoted 9 lines
Bart
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in the body of a message to [email protected]
More majordomo info at
http://vger.kernel.org/majordomo-info.html