First post, by dos4decades
Hello, I am very impressed with DOSBox (kudos to the developers!!) but I have a small problem. I have some old DOS utilities that require ANSI.SYS for cursor positioning and macros. I have used these nearly every day for decades. I would LOVE to be able to use them in DOSBox (in OS X with directories mounted). The first thing they do is issue and <esc>[6n request to report the cursor position, and check for the report (which appears as though typed from the keyboard), e.g. <esc>[25;01R. These programs don't actually use the reported cursor position. They simply look for any response and if none is seen, they assume that ANSI.SYS is not loaded, and refuse to work until it is loaded. So I simply need DOSBox to respond to <esc>[6n with even just one character to enable these programs to work.
I see that ripsaw8080 made a patch to respond to <esc>[6n with a cursor position report, offered in a post dated 2009-06-16. I don't know how to use this patch, and I gather it is not in DOSBox 0.74.
Re: Problems with ansi.sys - Help wanted
It is easy to test. If you create a file named 'report' containing <esc>[6n and then do 'type report', in MS-DOS with ANSI.SYS loaded, you see the report come back at the command prompt, e.g. <esc>[25;01R. In DOSBox nothing comes back.
Similar tests that use ANSI sequences to position the cursor within the standard 25 line x 80 character window, or change the font color, work fine, so I can see that DOSBox does have a partial implementation of ANSI.SYS.
I have tried a number of ANSI alternatives within DOSBox without success (ansi.com, ansiplus.exe, nnansi.com, devload ansi.sys). I hope ANSI cursor position reporting can be provided, or at least a single character emitted in response to the position report request. Thank you!