From: Peter Sutter Subject: Re: many dosemu 1.3.3 woes Date: Mon, 9 Jan 2006 18:27:00 +0800 Message-ID: <200601091827.00819.sutterp@sopac.com.au> References: <200601052302.33963.sutterp@sopac.com.au> Reply-To: sutterp@sopac.com.au Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-msdos@vger.kernel.org Many thanks Bart, I really appreciate your response. Peter On Monday 09 January 2006 16:31, Bart Oldeman wrote: > On Thu, 5 Jan 2006, Peter Sutter wrote: > > 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. I will do this over the next few days. > > > 2. Escape in -I keystroke > > (\^[) and (\r) is not recognised. The and > > keys work interactively. I have installed stuffit, > > where the and 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. 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. > > > 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 :-) > > > 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 ( and ). 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. 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. > > > 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. > > Bart > > - > To unsubscribe from this list: send the line "unsubscribe > linux-msdos" in the body of a message to > majordomo@vger.kernel.org > More majordomo info at > http://vger.kernel.org/majordomo-info.html