Re: Re^2: DOS mode

William Ofosu-Amaah (XI6W-OFSA@asahi-net.or.jp)
Fri, 26 Jul 1996 19:26:12 +0900

>I am interested in keys2.bat file. I uudecoded it from your article.
>But I do not understand how to use it.
>I have some questions about it.

> 1. How to set b:\config.sys file before keys2.bat running.
> a. Where can I get ansi.sys?

Ansi.sys is a part of MS-DOS.
I am using the one which comes with U.S. English DOS 6.22.
You need to copy ansi.sys to the b:\ and add the following line
to your config.sys (at the end is okay)

device=b:\ansi.sys

> b. Is it necessary to attach the setting of text mode driver?
> I have two drivers file. I want to know your configration.

Sorry, but I am not sure which two text mode drivers you mean.

> 2. I think the keys2.bat is able to input ":" and ";" characters
> from keyboard.
> But I found keys2.bat has only two "echo" command sentences.

Yes. One line for each of the two keys (: and ;)

> I tried to run, then it displayed two ESC sentences.

That means the bat file run properly.

> What is happen when it works?

If ansi.sys is installed correctly, after you run keys2.bat,
SHIFT+, should give you ";" and SHIFT+. should give you ":"
on the OGO keyboard in DOS mode.

The way ansi.sys works is when it detects an escape sequence in
the text a program (e.g. keys2.bat) is sending to the screen,
ansi.sys intercepts it, interperets it and sends the appropriate
comand to the keyboard controller.

Hope this helps.

William