home *** CD-ROM | disk | FTP | other *** search
- 43 LINES Version 2
- Alan D. Ariel
-
- I. Introduction
-
- This is the new and improved version of my set of utilities to toggle
- between 25 and 43 lines on a PC equipped with the enhanced color display
- and the Enhanced Graphics Adapter (EGA). The underlying concept in all of
- these utilities is to provide a means by which the EGA 43 line mode can be
- used in a full screen mode without rebooting. This is accomplished by
- searching in memory for the resident ANSI.SYS and making the patches
- necessary to allow full screen use and clear when in 43 line mode. The
- reverse process takes place when toggling back to 25 lines. The 43 line
- mode also resets the print screen vector to a routine which is capable of
- printing either 43 lines or 25 lines, according to the mode set.
-
- II. Changes/Enhancements/Additions
-
- 1. The programs 43.COM and 25.COM have been replaced by T43.COM. This one
- program performs the functions of both programs.
-
- 2. The program 43RES.COM, a resident version of T43.COM has been added.
- This program is toggled by CTRL-LEFTSHIFT-E at the DOS prompt.
-
- 3. Two other versions, T43NC.COM and 43RESNC.COM, have been added. These
- two versions perform the same as T43 and 43RES without resetting the video
- mode. For a discussion of the pros and cons to resetting the mode, see "To
- Clear or Not To Clear" below.
-
- 4. The utilities all use INT 10h, function 1230h (AX) to determine the
- current line mode of the adapter. The opposite mode is then shifted to.
-
- 5. The utilities WILL all operate without ANSI.SYS present. To further
- clarify, they will work if ANSI.SYS is not installed and if no other screen
- device is installed. These routines are not compatible with the public
- domain/shareware devices ZANSI and NANSI. If there is no screen device
- installed, DOS manages the screen based on whatever the current line mode
- is anyway.
-
- 6. A faster and more intelligent method of searching for ANSI.SYS has been
- implemented. Instead of starting the search at low memory (0000h) or
- picking and arbitrary start segment (misses the device in some machines),
- INT 21h, function 52h (AH) is used to get the address of the screen device.
- The search routine is reduced to verifying that the screen device is ANSI.
-
- 7. There are two primary advantages to the resident routines. The first
- is that the mode toggle is available with just a hot key combination. The
- second is that the search for ANSI is performed only once, with the address
- of the first patch being stored within the resident section.
-
- 8. These utilities will now check for the presence of an EGA card and will
- verify that it is in video mode 3 (80x25 text). If either is not true, the
- routines will return without doing anything.
-
- III. Patches
-
- The patches used are based on Karl Konnerth's ANSIEGA.DOC which is
- included with the utilities. One thing that Konnerth used that has not
- been implemented is a patch to COMMAND.COM to allow CLS to work in 43 line
- mode under DOS 3.1. I did not particularly care for the idea of patching
- someone else's COMMAND.COM and I found that such a patch wasn't necessary
- under DOS 3.2. If CLS isn't working properly, both T43 and 43RES reset the
- video mode which clears the screen anyway.
-
- IV. To Clear or Not To Clear
-
- Several people have indicated that they would prefer not to see the
- video mode reset when toggling between line sizes. For those people, I've
- included T43NC and 43RESNC. The pros and cons are as follows:
-
- 1. The IBM Technical Reference on the Enhanced Graphics Adapter recommends
- that the video mode be reset prior to changing the line mode. It only
- states that failure to do so may cause undetermined results.
-
- 2. Most programs that manage their own screen use a 25 line screen setup.
- All that 43 line mode would gain in this case would be to compress the
- screen on the upper half of the display.
-
- 3. Switching line modes while within a executing program is usually not
- a good idea, unless that program specifically supports changing line mode.
-
- 4. Switching line modes from the DOS prompt without a resetting the mode
- can be useful if a large file has been typed and it needs to be seen in its
- entirety.
-
- The choice is the user's. The user should also be aware that many programs
- will hang up the machine if either version is used from within the program.
- The bottom line recommendation of this author is to change modes from the
- DOS prompt.
-
- V. Programs
-
- The 43 lines utilities seem to do well in several places. They're
- useful in DOS if the user needs to keep track of what's been done. Word
- Perfect 5.0 will determine the line mode on startup and will support
- whatever line mode the adapter is in at that time. Version 4.2 works well
- with 43 line mode, but the start-up options have to be modified for 43 line
- mode to be useful. The user is limited only be his/her desire to try
- different things.
- A number of programs have the undesirable characteristic of making the
- cursor disappear with the EGA card/display. A small program, CUR.COM, is
- included to restore the cursor should this happen.
-
- VI. Testing
-
- These utilities have been tested on a Mitac Turbo XT clone with the
- Mitac EGA card and several Zenith Z-248's with the Zenith EGA card. No
- problems were noted. A test was also conducted on an AT with a CGA card.
- The utilities properly detected the lack of an EGA card and terminated
- execution. This is not to imply any certification of operation; rather it
- is merely just to give a flavor of the different types of machines these
- utilities were tested on.
-
-
- ╔═══════════════════════════════════════════════════════════════════════╗
- ║ As always, there are NO GUARANTEES OR WARRANTIES whatsoever stated ║
- ║ or implied. You use the 43 LINES utilities completely at ║
- ║ YOUR OWN RISK ! ║
- ╚═══════════════════════════════════════════════════════════════════════╝
-
-
- This set of programs did take a great deal of time to work up. You
- haven't lived until you have to debug a TSR which works both with the
- keyboard and the screen. If you find these utilities useful, a donation
- of $15 or more would sincerely appreciated to bolster my faith in the
- shareware concept as well as to give me some indication that my efforts
- have been appreciated. I would also be interested in hearing any ideas you
- might have for enhancing the performance of the 43 LINES utilities.
-
-
-
- ╔════════════════════╗
- ║ Alan D. Ariel ║
- ║ 1041 Halsey Dr. ║
- ║ Monterey, CA 93940 ║
- ╚════════════════════╝
-