home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / misc / aplus3.zip / ANSIPLUS.DOC < prev    next >
Text File  |  1993-09-15  |  111KB  |  2,538 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                   ANSIPLUS Enhanced Console Device Driver
  24.  
  25.                         User's Guide, Release 3.01
  26.  
  27.                           Shareware Documentation
  28.  
  29.                             September 15, 1993
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                COPYRIGHT (C) 1992, 1993 by Kristofer Sweger
  62.                      P.O. Box 378, Larkspur, CA 94977
  63.                            All Rights Reserved
  64.  
  65.  
  66. The ANSIPLUS console device driver, supporting utility programs, and this User's
  67. Guide are Copyrighted (C) 1992, 1993 by Kristofer Sweger. This software and
  68. accompanying documentation are protected by United States Copyright law and also
  69. by International Treaty provisions. The ANSIPLUS computer program and this
  70. documentation may not be reproduced, copied, disclosed, or transferred in any
  71. form (machine-readable or photo-copy included), except as provided here under
  72. "Limited License" (see page 3), without the express prior written approval of
  73. the author.
  74.  
  75. U.S. Government Information: Use, duplication, or disclosure by the U.S.
  76. Government of the computer software and documentation in this package shall be
  77. subject to the restricted rights applicable to commercial computer software as
  78. set forth in subdivision (b)(3)(ii) of the Rights in Technical Data and Computer
  79. Software clause at 252.227-7013 (DFARS 52.227-7013). The Contractor/
  80. manufacturer is: Kristofer Sweger, P.O. Box 378, Larkspur, CA 94977.
  81.  
  82.                           DISCLAIMER OF WARRANTY
  83.  
  84. Kristofer Sweger makes no warranty of any kind, express or implied, including,
  85. without limitation, any warranties of performance, merchantability and/or
  86. fitness for a particular purpose. This software and accompanying documentation
  87. are provided "as is," without warranty of any kind. The entire risk as to
  88. results and performance is assumed by you.
  89.  
  90. Kristofer Sweger shall not be liable for any damages, whether direct, indirect,
  91. consequential or incidental arising from a failure of the ANSIPLUS programs to
  92. operate in the manner desired by the user. Nor shall Kristofer Sweger be liable
  93. for any data, property or other damages which may be caused directly or
  94. indirectly by use of or inability to use the software, even if Kristofer Sweger
  95. has been advised of the possibility of such damages. In no event shall the
  96. liability for any damages exceed the price paid for the license to use the
  97. software, regardless of the form and/or extent of the claim. By using the
  98. software you agree to this.
  99.  
  100. The author further reserves the right to revise or alter the contents of this
  101. documentation or the ANSIPLUS software package from time to time without
  102. notifying any person or group of such changes or alterations.
  103.  
  104. The Limited License and Disclaimer of Warranty shall be construed, interpreted
  105. and governed by the laws of the State of California.
  106.  
  107.                                 TRADEMARKS
  108.  
  109. Microsoft and MS-DOS are registered trademarks of Microsoft Corporation. IBM and
  110. PS/2 are registered trademarks of IBM Corporation. Windows is a trademark of
  111. Microsoft Corporation. 4DOS is a registered trademark of JP Software, Inc.
  112. Norton Utilities is a registered trademark of Symantec Corporation. QEMM is a
  113. registered trademark of Quarterdeck Office Systems, Inc. 386MAX is a trademark
  114. of Qualitas, Inc. Other trademarked names may appear in this manual. The author
  115. states that he is using the trademarked names only for editorial purposes, and
  116. to the benefit of the trademark owner, with no intention of infringing upon any
  117. trademark.
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.                              Table of Contents
  125.  
  126.  
  127.  
  128.   I. Introduction
  129.  
  130.           Product description . . . . . . . . . . . . . . . . . . . . .  1
  131.           Registration  . . . . . . . . . . . . . . . . . . . . . . . .  2
  132.           Limited License . . . . . . . . . . . . . . . . . . . . . . .  3
  133.           Technical Support . . . . . . . . . . . . . . . . . . . . . .  4
  134.  
  135.  II. Features summary
  136.  
  137.           VGA/EGA display features  . . . . . . . . . . . . . . . . . .  5
  138.           Integrated console functions  . . . . . . . . . . . . . . . .  6
  139.           Other ANSIPLUS features . . . . . . . . . . . . . . . . . . .  7
  140.  
  141. III. Installing ANSIPLUS
  142.  
  143.           Installing the device driver and utility programs . . . . . . 10
  144.           Changing the ANSIPLUS startup configuration . . . . . . . . . 12
  145.  
  146.  IV. Using ANSIPLUS
  147.  
  148.           Special keyboard functions  . . . . . . . . . . . . . . . . . 20
  149.           Selecting and defining colors . . . . . . . . . . . . . . . . 21
  150.           Controlling other ANSIPLUS features . . . . . . . . . . . . . 25
  151.           Creating application batch files  . . . . . . . . . . . . . . 29
  152.           Editing ANSI escape sequence programs . . . . . . . . . . . . 32
  153.  
  154.   V. ANSIPLUS escape sequences
  155.  
  156.           Overview  . . . . . . . . . . . . . . . . . . . . . . . . . . 33
  157.  
  158.  VI. Technical notes
  159.  
  160.           ANSIPLUS and Windows 3  . . . . . . . . . . . . . . . . . . . 35
  161.           ANSIPLUS and the 4DOS or NDOS command shells  . . . . . . . . 37
  162.           ANSIPLUS extensions and the ANSI standard . . . . . . . . . . 37
  163.           Escape sequence recognizer enhancements . . . . . . . . . . . 38
  164.           Direct access to video RAM vs. BIOS calls . . . . . . . . . . 38
  165.           Installation checks . . . . . . . . . . . . . . . . . . . . . 38
  166.           Hooked interrupts . . . . . . . . . . . . . . . . . . . . . . 39
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. I.   INTRODUCTION
  179.  
  180. The DOS console device driver provides the critical interface between you and
  181. your personal computer. It controls the output you see from DOS and accepts
  182. your keyboard input, and you spend a whole lot of time using it. Unfortunately,
  183. the standard CON and ANSI device drivers supplied with DOS do not take full
  184. advantage of the capabilities of the major video controllers currently in use:
  185. VGA and EGA. In addition, the standard personal computer BIOS (the "Basic Input
  186. Output System" that is part of the computer's hardware) has limitations that
  187. have had to be addressed individually by several TSR (Terminate and Stay
  188. Resident) programs or device drivers, by work-arounds and special drivers in
  189. major application programs, or by development of graphical user interfaces such
  190. as Windows.
  191.  
  192. The ANSIPLUS console device driver integrates major console elements missing
  193. from DOS and the personal computer BIOS into a single compact device driver that
  194. can easily be controlled and personalized. With ANSIPLUS installed:
  195.  
  196.  * User interaction with the DOS command processor and many applications will be
  197.    significantly improved.
  198.  
  199.  * Screen output will be faster than with DOS's ANSI and non-ANSI drivers.
  200.  
  201.  * The user will have complete control over colors and VGA/EGA capabilities.
  202.  
  203.  * Users of Windows 3 will have access to ANSIPLUS features in all windowed
  204.    and full screen DOS sessions.
  205.  
  206.  * The user will also benefit from all the other display and keyboard features
  207.    provided by ANSIPLUS.
  208.  
  209. This is a fully functional Shareware copy of the ANSIPLUS product. As such, it
  210. is made available to the general computing public for evaluation. Users are
  211. licensed to operate ANSIPLUS on their personal computers for the purpose of
  212. test and evaluation for a limited trial period of thirty days. After
  213. evaluation, if the user decides the ANSIPLUS programs are not of sufficient
  214. merit to warrant purchase through registration with Kristofer Sweger, all
  215. ANSIPLUS programs should be removed from their personal computer. If ANSIPLUS
  216. is found to be useful and is in regular use, then registration is required.
  217.  
  218. This manual is organized in six chapters:
  219.  
  220.  * Chapter 1 introduces ANSIPLUS and covers product licensing and support;
  221.  
  222.  * Chapter 2 summarizes ANSIPLUS features for those who want to know what it
  223.    can do;
  224.  
  225.  * Chapter 3 discusses installing and configuring ANSIPLUS on your computer;
  226.  
  227.  * Chapter 4 describes keyboard functions and utility programs accessible to
  228.    users after installation;
  229.  
  230.  * Chapter 5 lists ANSIPLUS escape sequences; and
  231.  
  232.  * Chapter 6 contains several technical notes of interest to programmers and
  233.    others.
  234.  
  235.                                      1
  236.  
  237.  
  238.                                 REGISTRATION
  239.  
  240. By paying the registration fee for ANSIPLUS, registered users are granted a
  241. license to use the software on any single computer system. Site licenses for
  242. use of ANSIPLUS on multiple computers are available upon request at a
  243. substantially reduced fee per machine. Registered users also receive:
  244.  
  245.  * The TSR-capable registered version of the ANSIPLUS driver, ANSIPLUS.exe. This
  246.    driver may be loaded into memory from the DOS command line, from a batch file
  247.    (AUTOEXEC.bat), or from CONFIG.sys with DEVICE=, DEVICEHIGH=, or INSTALL=
  248.    commands. The Registered ANSIPLUS driver also doesn't have that pesky time
  249.    delay in the sign-on message. The registered version is NOT Shareware, so it
  250.    may not be copied for others.
  251.  
  252.  * A printed copy of the ANSIPLUS manual, which contains detailed documentation
  253.    on using the ANSIPLUS Escape sequences. This information is provided only in
  254.    the printed manual, and is not included in either the Shareware version or on
  255.    the Registered diskettes.
  256.  
  257.  * The most recent versions of the ANSIPLUS utility programs and other files in
  258.    the ANSIPLUS package.
  259.  
  260.  * Free BBS updates. Registered ANSIPLUS users can obtain free updates by
  261.    installing future Shareware versions of ANSIPLUS over their registered
  262.    copies. The ANSIPLUS installation program will automatically register a
  263.    Shareware copy when it is installed on a disk that boots a registered copy.
  264.  
  265. Registration helps support further improvements to ANSIPLUS. The easiest way to
  266. register ANSIPLUS is to print out the registration form file, REGISTER.pls, fill
  267. it out, and mail with payment to:
  268.  
  269.           Kristofer Sweger
  270.           P.O. Box 378
  271.           Larkspur, CA 94977
  272.  
  273. Payment may be by check, money order, Eurocheque in your own currency at current
  274. exchange rates, or credit card (Visa or Master Card only). Credit card orders
  275. are also accepted by telephone on the ANSIPLUS support line, 415/924-5407, and
  276. signed credit card orders may be sent by fax to 415/924-0258.
  277.  
  278. Pricing is shown in REGISTER.pls. California residents or businesses operating
  279. in California must also add sales tax.
  280.  
  281. Be sure to specify whether you want a 3.5" or 5.25" diskette, and to include the
  282. mailing address for your registered ANSIPLUS and manual. 
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.                                      2
  295.  
  296.  
  297.                               LIMITED LICENSE
  298.  
  299. Non-registered users of ANSIPLUS are licensed ONLY to evaluate the programs and
  300. device driver for up to thirty days for the sole purpose of determining whether
  301. or not it meets their requirements. All other use requires registration. Any
  302. other use of non-registered copies of ANSIPLUS by any person, business,
  303. corporation, or government organization, is not permitted.
  304.  
  305. Registered copies of ANSIPLUS may NOT be copied for others. However, permission
  306. is hereby granted for individuals to copy the non-registered ANSIPLUS package
  307. for their own use (for evaluation and backup purposes) or for other individuals
  308. to evaluate, provided all of the following conditions are met:
  309.  
  310.  * The ANSIPLUS package, including all related program and documentation files,
  311.    cannot be modified in any way and must be distributed in its entirety, with
  312.    no additions. The following computer files constitute the ANSIPLUS Shareware
  313.    package:
  314.  
  315.      ANSIPLUS.sys        ANSIPLUS Shareware console device driver
  316.      ANSIPLUS.doc        ANSIPLUS Shareware documentation
  317.      SETCOLOR.exe        Color control utility program
  318.      SETAPLUS.exe        Driver features control utility program
  319.      ANSICOM.exe         ANSI escape sequence editor
  320.      NEWAPLUS.exe        ANSIPLUS bootup configuration program
  321.      APLUSLIB.exe        Execution library for the utility programs
  322.      SETCOLOR.sch        Color schemes file for SETCOLOR.exe
  323.      CONSETUP.com        Sample escape sequence program
  324.      PUSHVID.com         Save current video mode, video page and colors
  325.      POPVID.com          Restore saved video mode, page and colors
  326.      LOCKPAL.com         Lock the 16-color palette
  327.      UNLOKPAL.com        Unlock the 16-color palette
  328.      APLUS.pif           Sample Windows PIF file
  329.      INSTALL.exe         Installation program
  330.      INSTALL.inf         Installation control file
  331.      REGISTER.pls        ANSIPLUS registration form
  332.      README.pls          Release notes
  333.  
  334.  * No price or other compensation may be charged for the ANSIPLUS package. A
  335.    distribution cost may be charged for the cost of the diskette, shipping and
  336.    handling, as long as the total per disk does not exceed US $6.00 in the
  337.    United States and Canada, or US $10.00 internationally.
  338.  
  339.  * The ANSIPLUS package cannot be bundled or included with other goods or
  340.    services, nor can it be included in any commercial software packaging offer,
  341.    nor can it be "rented" or "leased" to others, without specific prior written
  342.    agreement from Kristofer Sweger.
  343.  
  344. All rights not expressly granted here are reserved to Kristofer Sweger.
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.                                      3
  354.  
  355.  
  356.  
  357.                              TECHNICAL SUPPORT
  358.  
  359. We want our users to be satisfied, and we find the interaction with real users
  360. of ANSIPLUS to be of great value. Many ANSIPLUS features are the result of user
  361. input. If you have a problem evaluating ANSIPLUS or want to make a suggestion,
  362. comment, or complaint, please contact us immediately, whether you have
  363. registered or not. We can be reached by mail at P.O. Box 378, Larkspur, CA
  364. 94977, by electronic mail on CompuServe [72713,1241], by fax at 415/924-0258,
  365. or by telephone at 415/924-5407.
  366.  
  367. The ANSIPLUS technical support telephone line, 415/924-5407, can be called
  368. weekdays from 10:00 AM to 5:00 PM, Pacific Time. We ask that you recognize that
  369. this service can easily be overwhelmed by calls with questions that are already
  370. answered in the documentation provided. When you do call, please try to have all
  371. your questions (and any necessary supporting data) ready so that we can deal
  372. with them efficiently in one short session.
  373.  
  374. If you are reporting a software problem, we will need specific information about
  375. your computer system and how to recreate the problem:
  376.  
  377.  * What is the problem, or what is not behaving as expected?
  378.  
  379.  * What exactly must be done to cause the problem to appear?
  380.  
  381.  * What did you do to try to fix or work around the problem?
  382.  
  383.  * What is your software and hardware environment? This includes the version of
  384.    ANSIPLUS you are using, your computer type, DOS version, video controller,
  385.    any memory managers, other device drivers or TSRs loaded, and any other
  386.    software or hardware in use at the time.
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.                                      4
  413.  
  414. II.  FEATURES SUMMARY
  415.  
  416. Although many of the ANSIPLUS features described here may seem technical, each
  417. meets a need, and they all cooperate as parts of one compact console device
  418. driver. In this chapter, they have been collected into three major groups:
  419. VGA/EGA display features, integrated console functions, and other ANSIPLUS
  420. features. The remaining chapters give details regarding specific features.
  421.  
  422.  
  423.                          VGA/EGA DISPLAY FEATURES
  424.  
  425. The ANSIPLUS enhanced DOS console device driver is tailored to take advantage of
  426. VGA and EGA display capabilities:
  427.  
  428. Mode recognition    For any VGA/EGA display mode, the driver can properly
  429.                     address the entire screen. ANSIPLUS automatically recognizes
  430.                     and adapts to various VGA or EGA screen modes, both text and
  431.                     graphics, including extended modes with large numbers of
  432.                     lines and/or columns. ANSIPLUS can also automatically adapt
  433.                     to and compensate for older video controllers with very
  434.                     limited numbers of colors or shades (i.e., CGA or monochrome
  435.                     boards).
  436.  
  437. Speed               In text and in 16-color VGA/EGA graphics display modes, the
  438.                     driver bypasses the ROM BIOS and goes straight to the video
  439.                     RAM, so it can operate much faster than either the original
  440.                     DOS console driver or the DOS ANSI driver. Programs that
  441.                     write large character strings to the standard output
  442.                     (console) file handle in "raw" mode can generate their
  443.                     output many times faster.
  444.  
  445. Color selection     ANSIPLUS provides full control over colors. In color text
  446.                     modes, sixteen foreground and background colors are
  447.                     supported. In 16-color VGA/EGA graphics modes, ANSIPLUS
  448.                     allows mixing of background colors, for a total of 136
  449.                     possible background colors. In 256-color VGA graphics modes,
  450.                     all 256 foreground and background colors are supported.
  451.  
  452. Palette control     Control over VGA/EGA palette registers and VGA DAC registers
  453.                     allows selecting and maintaining colors using the video
  454.                     controller's full capabilities. The driver traps all video
  455.                     mode changes, and installs the palette and/or DAC colors of
  456.                     the user's, or of ANSIPLUS's color scheme. Applications that
  457.                     set their own palettes will continue to do so, but those
  458.                     that do not can now use custom color choices. Blinking can
  459.                     also be kept disabled to allow 16 background colors in text
  460.                     modes.
  461.  
  462. Text size           ANSIPLUS allows selection of alternate VGA/EGA character
  463.                     sets, giving control over the character height, and thus the
  464.                     number of text lines used in any VGA/EGA video mode.
  465.  
  466. Smooth scrolling    ANSIPLUS supports smooth scrolling of the screen (for fast
  467.                     CPUs with 16-bit VGA/EGA), so the screen can be read while
  468.                     it is moving. Options are provided to control the use and
  469.                     rate of smooth scrolling.
  470.  
  471.                                        5
  472.  
  473.  
  474. Extended modes      The ANSI Set Mode control sequence has been expanded to
  475.                     allow specifying VGA/EGA modes that are based on full AX
  476.                     and/or BX CPU register values, extending ANSI-type control
  477.                     to Super VGA/EGA controllers that require such register
  478.                     settings. Super VGA controllers that conform to the VESA
  479.                     standard are also automatically recognized, and VESA
  480.                     extended set mode calls are made by the ANSIPLUS driver for
  481.                     modes of 100h or higher.
  482.  
  483.  
  484.                        INTEGRATED CONSOLE FUNCTIONS
  485.  
  486. The ANSIPLUS driver efficiently integrates several useful console functions that
  487. in the past had to be provided by separate TSR programs or device drivers:
  488.  
  489. Screen saver        A screen saver blanks the VGA/EGA screen after several
  490.                     minutes of screen, keyboard and mouse inactivity. The screen
  491.                     can be brought back by any keystroke (including shift keys)
  492.                     or by mouse movement or buttons. The screen saver feature
  493.                     can be enabled or disabled by the user, and is automatically
  494.                     disabled in certain situations.
  495.  
  496. Keyboard buffer     As many PC users eventually discover, the standard personal
  497.                     computer BIOS provides a keyboard input type-ahead buffer of
  498.                     only 15 characters, which is enough for only the shortest of
  499.                     commands. ANSIPLUS extends this by 113 keystrokes for a
  500.                     total type-ahead of 128 keystrokes (configurable for more if
  501.                     necessary).
  502.  
  503. Repeated keys       Another problem with the standard BIOS keystroke buffer
  504.                     occurs when keys are held down too long, and the buffer
  505.                     rapidly fills with repeated (or "typematic") keys, which
  506.                     are then processed long after the key is lifted. Spreadsheet
  507.                     users often experience this when holding down one of the
  508.                     arrow keys. ANSIPLUS disables repeat key type-ahead, but
  509.                     does allow repeat keys that are immediately consumed by
  510.                     programs, so the type-ahead buffer cannot be filled with
  511.                     unintended keystrokes. Repeated digits are also suppressed,
  512.                     making it impossible to inaccurately enter a number just
  513.                     because a key is held down too long. The rate at which
  514.                     repeated keys are generated is also configurable.
  515.  
  516. Key stacking        ANSIPLUS supports key stacking, which can load the keyboard
  517.                     buffer with a series of keystrokes and feed them into
  518.                     programs or commands as if they had been typed at the
  519.                     keyboard. This feature can be useful for automating startup
  520.                     of programs, software testing, and demonstrations. Keys can
  521.                     be added to the buffer by ANSI escape sequence, by ANSIPLUS
  522.                     utility program command, or, for users of the 4DOS 4.0+ or
  523.                     NDOS Version 7.0 command shells, by KEYSTACK command.
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.                                        6
  531.  
  532. Scroll-back         Every DOS user sooner or later needs to recall something
  533.                     that was on the screen, but has scrolled off the top.
  534.                     Programmers often encounter this with error messages, and
  535.                     other users with file directory listings. To address this
  536.                     problem, ANSIPLUS supports screen scroll-back: all lines
  537.                     scrolled and cleared from the screen in text modes are
  538.                     captured by the ANSIPLUS driver so that the user can stop at
  539.                     any time and browse through recent screen contents.
  540.  
  541. Scroll lock         Large directory listings and other rapidly generated screen
  542.                     output can often fly by on the screen too fast to be read.
  543.                     Hitting the Scroll Lock key will freeze the screen when
  544.                     ANSIPLUS or the BIOS next tries to scroll it. When the
  545.                     screen is frozen, several keystroke options allow control
  546.                     over subsequent screen output.
  547.  
  548. Beep tone           The standard personal computer BIOS Control-G beep tone
  549.                     generator waits in a programmed loop until sound output is
  550.                     completed. Sometimes, error or other conditions detected in
  551.                     a running program can generate a rapid sequence of beeps,
  552.                     and the computer will just hang for what seems an eternity,
  553.                     beeping away. ANSIPLUS has an interrupt-controlled tone
  554.                     generator that lets the beep tone be finished in parallel
  555.                     with subsequent processing. Multiple beeps are ignored if a
  556.                     tone is currently being generated, so programs cannot be
  557.                     slowed down by a rapid series of beeps. Options are provided
  558.                     for defining the tone and using or not using the tone
  559.                     generator.
  560.  
  561.                           OTHER ANSIPLUS FEATURES
  562.  
  563. Other ANSIPLUS features include:
  564.  
  565. User control        Menu driven, mouse controllable utilities give the user full
  566.                     control over selected colors, color palettes, border colors,
  567.                     video modes, text height, key reassignment, beep tone
  568.                     definition, driver table sizes, and all other configurable
  569.                     features.
  570.  
  571. Loading options     At load time, the ANSIPLUS driver can divide itself into
  572.                     sharable code (about 19K) and unshared code/data (about
  573.                     4K) sections, placing the shared code in either XMS upper
  574.                     memory blocks (from 640K to 1M) or in high memory (1M to
  575.                     1M+64K), and leaving only the unshared part in low memory.
  576.                     The registered driver can be loaded as either a TSR program
  577.                     or a device driver.
  578.  
  579. Bright key echo     ANSIPLUS highlights user-typed keys when they are displayed
  580.                     by DOS on the screen, giving a clear visual separation of
  581.                     typed entries from computer output. If unwanted, this
  582.                     feature can be disabled.
  583.  
  584. ANSI support        All DOS ANSI.sys escape sequences are supported, plus
  585.                     additional ANSI/VT-100 escape sequences for clearing the
  586.                     screen, erasing lines, inserting and deleting lines, and
  587.                     inserting and deleting characters.
  588.  
  589.                                        7
  590.  
  591.  
  592. Windows aware       ANSIPLUS features have been tested and adjusted for maximum
  593.                     compatibility in Windows DOS sessions, both full screen and
  594.                     within a window. The ANSIPLUS driver detects when Windows
  595.                     is running, and automatically disables or alters certain
  596.                     features, such as the screen blanker, that may interfere.
  597.  
  598. Mono/CGA support    ANSIPLUS should give reasonable and readable displays in all
  599.                     display modes, including those with a very limited number of
  600.                     colors or shades. ANSI-type programs written in terms of 16
  601.                     colors will be executable on machines with simpler video
  602.                     capabilities, if ANSIPLUS is running on that machine.
  603.  
  604. Key processing      ANSIPLUS includes several special key processing options:
  605.  
  606.                     (1) the shift-alphabetic keys can cause Caps-Lock to
  607.                         unlock, much like a typewriter releases its shift lock
  608.                         whenever a shift key is pressed;
  609.  
  610.                     (2) the Enter key can restore Caps-Lock after it was
  611.                         unlocked by a shift-alphabetic key, thus restoring Caps
  612.                         on completion of an "entry";
  613.  
  614.                     (3) Control-C can cause a Control-Break, for those users who
  615.                         prefer the Control-C key; and
  616.  
  617.                     (4) the DOS "Non-Destructive" input function can return the
  618.                         last key in the keyboard buffer instead of the first, so
  619.                         that it always reflects what has last been typed.
  620.  
  621. Key reassignment    ANSIPLUS has the ability to translate single keystrokes to
  622.                     full commands or other pre-determined key sequences. These
  623.                     key reassignments can be applied either to keys entered
  624.                     through DOS or to all keys entered via BIOS Interrupt 16h.
  625.                     Both expansion of keys and changes to key reassignments can
  626.                     also be enabled or disabled independently. When key
  627.                     reassignment changes are disabled, a distinctive tone sounds
  628.                     on any attempt to redefine a key, making it easy to detect
  629.                     ANSI-type files that contain key redefinitions.
  630.  
  631. Line wrapping       When the length of a line displayed on the screen exactly
  632.                     equals the width of the screen, the standard DOS console
  633.                     device drivers cause a blank line to be output. ANSIPLUS
  634.                     suppresses output of these unintended blank lines.
  635.  
  636. Graphics cursor     The DOS console drivers do not show a cursor on the screen
  637.                     when in graphics modes. ANSIPLUS can display a cursor when
  638.                     keyed entries are requested by DOS in a graphics mode.
  639.  
  640. BIOS TTY ANSI       ANSIPLUS provides an option to trap and execute ANSI control
  641.                     sequences in BIOS Int 10h Write TTY output as well as in DOS
  642.                     standard console output.
  643.  
  644.  
  645.  
  646.  
  647.  
  648.                                        8
  649.  
  650.  
  651. Transparent mode    On occasion, it is undesirable to have the ANSI driver fill
  652.                     in the background color of each character space as it writes
  653.                     characters. ANSIPLUS includes a "transparent" background
  654.                     mode that will write each output character in the current
  655.                     foreground color over whatever background is currently at
  656.                     the cursor position.
  657.  
  658. Text treatments     In 16-color graphics modes, ANSIPLUS can apply bold,
  659.                     underline, black shadow, slant (italics), or black outline
  660.                     text treatments, in any combination, to output characters
  661.                     for emphasis or improved legibility.
  662.  
  663. Esc pass-through    Unlike the ANSI.sys driver, the Esc character is trapped by
  664.                     ANSIPLUS only when followed by a left bracket ("["), so
  665.                     programs that write Esc (a left arrow) to the screen will
  666.                     continue to do so after ANSIPLUS is installed.
  667.  
  668. VGA mono emulation  Because application developers with VGA color monitors
  669.                     sometimes need to see how their systems will look when run
  670.                     with a monochrome VGA monitor, ANSIPLUS provides an option
  671.                     to emulate a monochrome VGA monitor on a color monitor.
  672.  
  673. Status reporting    To allow programs to query ANSIPLUS about more than just the
  674.                     current cursor location, the device status report has been
  675.                     extended to report information about the current video mode,
  676.                     video page, numbers of rows, columns and colors, current or
  677.                     default definition of colors, and more.
  678.  
  679. Installation checks To facilitate developing applications that can use ANSIPLUS
  680.                     features, ANSIPLUS responds to standard Int 2Fh ANSI.sys
  681.                     installation checks, and includes extensions that can
  682.                     distinguish ANSIPLUS from ANSI.sys.
  683.  
  684. Free BBS Updates    When a Shareware copy of ANSIPLUS is installed on a disk
  685.                     that boots a Registered copy, the INSTALL program will
  686.                     convert the new Shareware copy into a Registered copy with
  687.                     the same serial number and signon message as the Registered
  688.                     ANSIPLUS already on the disk. Registered users can thus
  689.                     benefit from future improvements to ANSIPLUS at no cost, if
  690.                     they have access to CompuServe or a bulletin board system
  691.                     (BBS) that maintains recent Shareware versions of ANSIPLUS.
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.                                        9
  708.  
  709. III. INSTALLING ANSIPLUS
  710.  
  711.  
  712.         INSTALLING THE ANSIPLUS DEVICE DRIVER AND UTILITY PROGRAMS
  713.  
  714. The ANSIPLUS package includes an installation and configuration program called
  715. INSTALL.exe, which should properly handle most installations. INSTALL analyzes
  716. the runtime environment, CONFIG.sys and AUTOEXEC.bat of the target drive,
  717. locates the source files, copies ANSIPLUS to the target drive (or to any
  718. sub-directories of the user's choice), and updates CONFIG.sys and AUTOEXEC.bat.
  719.  
  720. Starting with MS-DOS 6.0, the CONFIG.sys file can contain menus and multiple
  721. configuration blocks. When a CONFIG.sys menu is being used, a new ANSIPLUS
  722. installation will require selecting a configuration block to receive the
  723. ANSIPLUS DEVICE= command, and an update will require selecting a block that
  724. either already refers to ANSIPLUS, or to which it will be added. INSTALL makes
  725. an initial choice of configuration block, and this can be corrected by the user
  726. before copying the ANSIPLUS release files by using the "Revise Parameters"
  727. option on the Installation menu.
  728.  
  729. The INSTALL program also gives an opportunity (via the Installation menu) to set
  730. the destination directory for each installed file or for classes of files. If
  731. the directory is not specified for a file, the following assumptions will apply:
  732.  
  733.  * If an ANSIPLUS file name matches the name of a file in the default directory,
  734.    root directory, or on the system PATH of the destination drive, then the
  735.    ANSIPLUS file will be copied over the matched file (i.e., updated). This is
  736.    intended to make installation of ANSIPLUS updates a snap.
  737.  
  738.  * New files are added to a directory for each class of file (i.e., driver,
  739.    utility program, or documentation/other). If any file in the class is being
  740.    updated, then the class directory will be the same as the updated files.
  741.    Otherwise, the class directory will be "\ANSIPLUS".
  742.  
  743. It is recommended that you put all of the ANSIPLUS utility programs (SETCOLOR,
  744. SETAPLUS, ANSICOM, NEWAPLUS and APLUSLIB) on your system PATH so that they can
  745. be used easily. It is critical that the execution library, APLUSLIB.exe, be
  746. located either in the same directory as the other utility programs or on the
  747. system PATH. If it is not, the utility programs will not run! You may also want
  748. to place the ANSIPLUS.sys device driver in the root directory.
  749.  
  750. For those who are not content to use default driver feature and other settings,
  751. after the release files have been copied to the target drive, the configuration
  752. section of the INSTALL program lets the user set the startup (boot) driver table
  753. sizes, colors, and feature settings, as well as high memory loading options that
  754. affect CONFIG.sys. These configurations can be performed either at installation
  755. time, or any time later on an installed drive by using the NEWAPLUS.exe program.
  756. Context sensitive help (via the F1 key) is provided for all entries. Startup
  757. configuration changes are described in the following section, starting on page
  758. 12.
  759.  
  760. Before installing ANSIPLUS, or any other new device driver, be sure you have a
  761. bootable floppy disk as insurance against trouble getting your system to run
  762. after the device driver is installed.
  763.  
  764.  
  765.  
  766.                                        10
  767.  
  768.  
  769. International users should be aware of the following:
  770.  
  771.  * If you are using the KEYB program to set up your keyboard, the following
  772.    command MUST be executed after you load KEYB, otherwise most ANSIPLUS
  773.    keyboard related features will not work:
  774.  
  775.             SETAPLUS LINK KEYEVENT
  776.  
  777.    The INSTALL program will automatically add this command to your AUTOEXEC.bat
  778.    file if it finds a reference in it to KEYB.
  779.  
  780.  * If you are using the DISPLAY.sys device driver for code page switching, the
  781.    ANSIPLUS.sys device driver must be installed before DISPLAY.sys in your
  782.    CONFIG.sys file. The INSTALL program will automatically handle this in most
  783.    cases. However, under DOS 6.0, if ANSIPLUS is installed in a configuration
  784.    block that will be processed by MS-DOS after the configuration block that
  785.    contains DISPLAY.sys, this situation will not be detected by INSTALL. This
  786.    must be corrected by directly editing CONFIG.sys.
  787.  
  788. The following examples illustrate using INSTALL to install ANSIPLUS:
  789.  
  790.  * If you received ANSIPLUS on a floppy disk and want to install it on your hard
  791.    disk, use the following installation procedure:
  792.  
  793.      (1) Set the default directory to the hard disk (i.e., get a C> prompt).
  794.  
  795.      (2) Insert the ANSIPLUS diskette in drive A: (or other floppy drive).
  796.  
  797.      (3) Enter the following command:
  798.  
  799.             A:INSTALL
  800.  
  801.  * If you received ANSIPLUS as a ZIP file (named ANSIPLUS.zip in this example),
  802.    use the following procedure:
  803.  
  804.      (1) Create a temporary sub-directory  on the hard disk to contain the
  805.          unzipped ANSIPLUS files. Move ANSIPLUS.zip to this directory and make
  806.          it be the default directory. This directory must be different from the
  807.          directory that will receive the installed ANSIPLUS files.
  808.  
  809.      (2) Unzip the files into the directory with the command:
  810.  
  811.             PKUNZIP ANSIPLUS
  812.  
  813.      (3) Then enter the command:
  814.             INSTALL
  815.  
  816.           After installation is complete, you may delete the files in the
  817.           temporary sub-directory (but keep the ZIP file as a backup).
  818.  
  819.  * To install ANSIPLUS on bootable disk B:, from hard disk directory C:\APLUS,
  820.    enter the command:
  821.  
  822.             C:\APLUS\INSTALL B:
  823.  
  824.  
  825.                                        11
  826.  
  827.                 CHANGING THE ANSIPLUS STARTUP CONFIGURATION
  828.  
  829. Changes to the startup configuration for ANSIPLUS are made with the NEWAPLUS.exe
  830. program. (INSTALL also lets you make these changes, but INSTALL.exe is actually
  831. a tiny program that calls NEWAPLUS.exe to perform the installation.) You run
  832. NEWAPLUS with a command of the form:
  833.  
  834.             NEWAPLUS <target>
  835.  
  836. where <target> is the drive letter for a bootable diskette or hard disk
  837. partition with ANSIPLUS installed. If <target> is omitted, the drive that was
  838. originally used to load MS-DOS will be selected. After NEWAPLUS confirms that
  839. the target disk contains ANSIPLUS, you are presented with a startup
  840. configuration menu that has nine revision option groups:
  841.  
  842. Initial Colors
  843.  
  844.  * Color selection sub-menus let you choose from the current 16-color palette
  845.    the screen colors that will be used for text foreground and background when
  846.    the system starts up. ANSIPLUS maintains two sets of foreground and
  847.    background colors: those that are currently on the screen, and "default"
  848.    colors to be applied when an ANSI Set Graphics Rendition reset (i.e., Esc
  849.    [0m) is detected. The startup selections for both color combinations can be
  850.    controlled from this sub-menu.
  851.  
  852. Palette Definition
  853.  
  854.  * The color palette determines the precise colors you will see in 16 color
  855.    video modes. ANSIPLUS maintains two palettes: the current palette on the
  856.    screen, and a default palette that is loaded when ANSIPLUS first starts and
  857.    whenever the video display mode is changed. All changes you make using the
  858.    NEWAPLUS color palette option will apply to the default palette.
  859.  
  860. Border Color
  861.  
  862.  * The border color is generated for the "overscan" region on the outside edges
  863.    of the screen. You can select any available color as the default border
  864.    color, which will be installed when ANSIPLUS starts up and whenever the
  865.    display mode is set.
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.                                        12
  885.  
  886. Loading Option
  887.  
  888.    ANSIPLUS can be loaded into memory up to four different ways, depending on
  889.    your computer's capabilities and what is contained in CONFIG.sys:
  890.  
  891.  * ANSIPLUS can be loaded into low memory below 640K. This is the default.
  892.  
  893.  * ANSIPLUS can load itself into upper memory blocks. At load time, the driver
  894.    can divide itself into two sections: sharable code totaling about 19K, and
  895.    unsharable code/data totaling about 4K. The shared code can be placed in
  896.    either XMS upper memory blocks (from 640K to 1M) or in high memory (1M to
  897.    1M+64K), leaving only the unsharable 4K in low memory. Because all ANSIPLUS
  898.    driver data remains in low memory as part of the DOS CON driver, it will be
  899.    localized under Windows 3.0. Under DOS 5.0 or later, this option should work
  900.    whether DOS=UMB appears in CONFIG.sys or not. The following CONFIG.sys
  901.    command loads ANSIPLUS into the XMS upper memory blocks:
  902.  
  903.        DEVICE=ANSIPLUS.sys /U
  904.  
  905.  * ANSIPLUS can load itself into the high memory addressed just above 1 megabyte
  906.    (the "HMA"). Under DOS 5.0 or later, with the DOS=HIGH line in CONFIG.sys,
  907.    ANSIPLUS shares this memory with DOS; if DOS=HIGH is not used, but an XMS
  908.    driver is installed, the HMA is obtained from the XMS driver; or, for earlier
  909.    DOS versions or systems not using an XMS driver, the HMA is taken in the same
  910.    manner as the VDISK.sys driver allocates extended memory. When ANSIPLUS is
  911.    loaded into the HMA, certain (antique) programs that assume memory addresses
  912.    over one megabyte will "wrap around" to addresses starting at zero may not
  913.    operate correctly. If you experience any problems, load ANSIPLUS into either
  914.    XMS upper memory blocks or low memory instead. The following CONFIG.sys
  915.    command will load ANSIPLUS into the high memory area:
  916.  
  917.        DEVICE=ANSIPLUS.sys /H
  918.  
  919.  * ANSIPLUS can be loaded high by DEVICEHIGH or equivalent. Users of Windows 3.0
  920.    and EMM386, QEMM, or DOS 5.0/6.0 should note: With DOS 5.0 or later (using
  921.    DEVICEHIGH and EMM386), or with other memory managers such as QEMM (using
  922.    LOADHI), ANSIPLUS can be loaded into upper memory blocks above 640K to
  923.    provide 19K more program area below 640K. However, if Windows 3.0 will be
  924.    run in 386 Enhanced mode, it is strongly recommended that ANSIPLUS (or any
  925.    other ANSI driver) not be loaded into high memory by these methods. This is
  926.    because Windows 3.0 does not localize the XMS upper memory block area above
  927.    640K for its virtual 8086's, and so only one global copy of ANSIPLUS would be
  928.    shared among all virtual machines. This can cause trouble: if, for example, a
  929.    program in one window selects colors, then those colors would also be in
  930.    force for all DOS programs in other windows!  This localization problem
  931.    has been fixed in Windows 3.1.
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.                                        13
  944.  
  945.  
  946. Color Control
  947.  
  948.  * The ANSIPLUS driver ordinarily traps all video mode changes and installs the
  949.    palette and/or DAC colors of the user's, or of ANSIPLUS's default color
  950.    scheme. Applications that set their own palettes will continue to do so, but
  951.    those that do not will use the installed color choices. If this feature is
  952.    disabled, the VGA/EGA controller manufacturer's colors (the "OEM" colors)
  953.    will be loaded when the video mode changes.
  954.  
  955.  * Some 256-color DOS applications assume that the OEM 256-color palette has
  956.    been loaded when the 256-color mode was selected, and never define the colors
  957.    that they will use. A feature is provided to disable ANSIPLUS color loading
  958.    for DOS 256-color modes if you are running such an application.
  959.  
  960.  * Some 256-color drivers for Windows apparently assume that the OEM 256-color
  961.    palette has been loaded when the 256-color mode was selected, and never
  962.    define the colors that Windows will use. Because of this, ANSIPLUS normally
  963.    does not load its default colors when a 256-color mode is selected under
  964.    Windows. However, a separate feature is provided to allow this if desired.
  965.  
  966.  * In color text modes, the VGA and EGA allow either sixteen background colors
  967.    with no blinking foreground text, or eight background colors with foreground
  968.    text that may or may not blink. In monochrome text mode 07h, when blinking is
  969.    disabled there are three backgrounds possible: black, gray or white, and with
  970.    blinking enabled there are two: black and gray. If blinking is disabled,
  971.    ANSIPLUS will display sixteen (or three) background colors, and when it is
  972.    enabled, you will see only eight (or two) background colors.
  973.  
  974.  * ANSIPLUS highlights user-typed keys when they are displayed on the screen,
  975.    giving a clear visual separation of typed entries from computer output. Over
  976.    dark backgrounds, the key is shown in white, and over light backgrounds it is
  977.    shown in black. If this feature is not wanted, it can be disabled.
  978.  
  979.  * Because application developers with VGA color monitors sometimes need to see
  980.    how their systems will look when run with a VGA monochrome monitor, ANSIPLUS
  981.    provides emulation of monochrome monitor VGA on a color monitor. In normal
  982.    operation, this feature should be disabled.
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.                                        14
  1003.  
  1004. Display Control
  1005.  
  1006.  * The ANSIPLUS screen saver blanks the VGA/EGA screen after several minutes of
  1007.    screen, keyboard and mouse inactivity. The screen is brought back by any
  1008.    keystroke, including shift keys, or, if a mouse is connected, by moving it or
  1009.    pressing a button. The screen saver is automatically disabled under Windows
  1010.    and when certain games or other programs that take over the timer are
  1011.    running, and does not interfere with any known programs. However, if this
  1012.    feature is not desired, it can be turned off.
  1013.  
  1014.  * As a "last resort" test for system activity, the screen saver can read scan
  1015.    codes from the keyboard controller at port 60h.  This test should only be
  1016.    needed when you are running an application that completely takes over all
  1017.    keyboard interrupts and directly controls the screen display as well. On some
  1018.    computers, enabling this feature can interfere with processing of the arrow
  1019.    and page up/down keys on enhanced keyboards, or with a PS/2 type mouse, so
  1020.    the feature should be disabled unless it is really needed to keep the screen
  1021.    saver from blanking the screen when a specific application is run.
  1022.  
  1023.  * The time of inactivity before the screen goes blank is configurable between
  1024.    one and twenty minutes.
  1025.  
  1026.  * During periods of keyboard inactivity, ANSIPLUS's screen saver uses MS mouse
  1027.    Int 33h calls to test the status of the mouse. In the unlikely event these
  1028.    calls interfere with the mouse driver, they can be disabled.
  1029.  
  1030.  * On the IBM PS/2, the mouse is usually connected to the pointing device port,
  1031.    and mouse activity will cause interrupts on the Mouse Event interrupt number
  1032.    74h, so ANSIPLUS monitors this interrupt to unblank the screen. If the screen
  1033.    fails to go blank after a long idle period, or if this interrupt is used for
  1034.    another purpose, this feature should be disabled.
  1035.  
  1036.  * The DOS console drivers do not show a cursor on the screen when using a
  1037.    graphics mode. ANSIPLUS can display a pseudo-cursor when keyed entries are
  1038.    requested by DOS in a graphics mode. If this feature is desired, it can be
  1039.    enabled. If it interferes with the appearance of a graphics mode program, it
  1040.    should be left disabled.
  1041.  
  1042.  * Because almost all applications that use 256-color graphics modes assume that
  1043.    DOS does not place a cursor on the screen, the ANSIPLUS pseudo-cursor is
  1044.    normally disabled when in a 256-color mode. If desired, you can enable the
  1045.    cursor.
  1046.  
  1047.  * Programs that write screen output using ROM BIOS Int 10h Function 14 (Write
  1048.    TTY) ordinarily cannot use ANSI Escape sequences for screen control. ANSIPLUS
  1049.    includes a feature to allow this.
  1050.  
  1051.  * When the VGA/EGA video controller does not allow setting a palette register
  1052.    unless a vertical retrace is in progress, or when "snow" or other problems
  1053.    occur during palette color changes, ANSIPLUS provides an option to wait for a
  1054.    vertical retrace whenever setting a palette register. Otherwise, this feature
  1055.    should remain disabled.
  1056.  
  1057.  * ANSIPLUS contains an internal stack for saving and restoring video context
  1058.    information (rows and columns, colors, display modes, etc.). The default size
  1059.    allows 25 pushes, but this can be configured to a larger value if needed.
  1060.  
  1061.                                        15
  1062.  
  1063.  
  1064. Screen Scrolling
  1065.  
  1066.  * ANSIPLUS uses the Scroll-Lock key as a hot key for freezing fast screen
  1067.    output and for activating screen scroll-back. If these features are not
  1068.    desired, or to run those few applications that use Scroll-Lock for other
  1069.    purposes, the ANSIPLUS Scroll-Lock key can be disabled. However, before you
  1070.    completely disable ANSIPLUS's Scroll-Lock key, try the Alt-Scroll-Lock
  1071.    combination instead (see next option).
  1072.  
  1073.  * An alternative hot key is Alt-Scroll-Lock. If this key is enabled, the Alt
  1074.    key must be pressed simultaneously with the Scroll-Lock key to cause the
  1075.    ANSIPLUS Scroll-Lock function to be activated. If it is disabled, the
  1076.    Scroll-Lock key will function with or without any other simultaneous key.
  1077.  
  1078.  * As lines are scrolled off the top of the screen, the ANSIPLUS driver can save
  1079.    them for later viewing. This viewing is called screen scroll-back. Most of
  1080.    the time this is a very useful and unobtrusive feature, but if it is
  1081.    undesired, or if storage of the saved lines in unused portions of the video
  1082.    RAM is found to interfere with something, it can be disabled.
  1083.  
  1084.  * On most computers, screen scroll-back should operate correctly when running
  1085.    full screen under Windows. However, when running DOS applications in a 386
  1086.    Enhanced Mode window, Windows will not maintain a full 32K of text mode RAM
  1087.    for the application, and this can result in a loss of scroll-back text, or in
  1088.    a message from Windows about not having enough memory to correctly display
  1089.    information. ANSIPLUS attempts to compensate for this, but a configurable
  1090.    feature is also provided to totally disable scroll-back when Windows is
  1091.    running. If you run all DOS applications full screen, this feature should be
  1092.    enabled. For more discussion of this problem and its remedies, see "ANSIPLUS
  1093.    and Windows 3" starting on page 34.
  1094.  
  1095.  * On systems with extended memory and either a suitable XMS driver such as
  1096.    HIMEM.sys or QEMM, or ANSIPLUS loaded into the High Memory Area (HMA),
  1097.    ANSIPLUS can allocate 32K of XMS or HMA memory to preserve scroll-back data
  1098.    when changing video display modes or when running graphics applications
  1099.    (including Windows). DOS sessions under Windows 3.1 can also use XMS memory
  1100.    for this purpose if they have access to at least 32K of extra XMS memory (See
  1101.    PIF Editor in the Windows User's Guide). If ANSIPLUS is loaded into the HMA
  1102.    and does not share this area with DOS, then ANSIPLUS will preserve
  1103.    scroll-back using HMA, except when Windows is running; otherwise, XMS memory
  1104.    will be used. Because calls to some XMS drivers may require a lot of stack
  1105.    space, this feature should be disabled if you have reliability problems
  1106.    during display mode changes.
  1107.  
  1108.  * ANSIPLUS captures for scroll-back all standard DOS output that is scrolled
  1109.    off the top of the screen or cleared from the screen. An option is provided
  1110.    to capture full lines scrolled off the top by BIOS calls, as well as screens
  1111.    not containing DOS output, when they are cleared by BIOS call.
  1112.  
  1113.  * Every time that video page 0 (the normal video page for all DOS output) is
  1114.    cleared, the first through last non-blank lines on the screen (plus one above
  1115.    and below) are captured for scroll-back. When the second and higher video
  1116.    pages are cleared, they will not be saved unless lines have been scrolled off
  1117.    the top. An option is provided to capture the higher video pages too when
  1118.    they are cleared.
  1119.  
  1120.                                        16
  1121.  
  1122.  
  1123.  * ANSIPLUS stores captured screen lines in unused parts of the video RAM, with
  1124.    usage based on whether a display page has ever been selected for display.
  1125.    Almost all text mode applications select a page before filling it with text,
  1126.    so ANSIPLUS should generally know what is used and what isn't.  However, a
  1127.    few applications, such as the Norton Utilities, appear to use the second
  1128.    video page without ever selecting it to save the original contents of the
  1129.    screen as the program starts up.  This action will wipe out any scroll-back
  1130.    data in the second page, and when the original screen is cleared by the
  1131.    program, scroll-back lines may be stored into the saved screen, causing
  1132.    gibberish to be restored to the screen when the program terminates.  To
  1133.    address this problem, a configurable feature is provided to protect the
  1134.    second video page from scroll-back storage.  However, when this feature is
  1135.    enabled, storage capacity for scroll-back will be reduced by one page.
  1136.  
  1137.  * Smooth scrolling can gradually move the entire screen's text up so it can be
  1138.    read while it moves. This feature can also be toggled on and off by the
  1139.    Shift-Scroll Lock key combination. Smooth scrolling will appear unacceptably
  1140.    choppy on computers with lower powered CPUs and/or video controllers that
  1141.    cannot move a full screen of text in the video RAM completely during a
  1142.    vertical retrace. If this occurs, the feature should not be used.
  1143.  
  1144.  * Smooth scrolling can be disabled under Windows. If smooth scrolling does not
  1145.    perform well in full screen DOS sessions under Windows, or if there are other
  1146.    problems, then this should be done.
  1147.  
  1148.  * Because it takes time to smoothly scroll the screen, smooth scrolling of
  1149.    large amounts of screen output can significantly delay the computer. An
  1150.    option is provided to increase the scrolling rate when the smooth scrolling
  1151.    operation is taking a significant proportion of the computer's time. This can
  1152.    help, for example, to prevent data overruns when smooth scrolling is used
  1153.    with a communications program that scrolls the entire screen.
  1154.  
  1155.  * ANSIPLUS normally handles all text mode scrolling itself directly in the
  1156.    video display RAM. This may confuse some other device drivers or TSRs that
  1157.    are installed and need to know when the screen is being scrolled. In such
  1158.    cases, a feature can be enabled to cause BIOS calls for screen scrolling.
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166.  
  1167.  
  1168.  
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.                                        17
  1180.  
  1181.  
  1182. Keyboard
  1183.  
  1184.  * By default, ANSIPLUS increases the keyboard buffer capacity to 128
  1185.    characters, which should hold at least as much as most users can type ahead
  1186.    accurately. To expand the computer's keyboard buffer capacity, an extension
  1187.    buffer is retained within ANSIPLUS, and whenever the ROM BIOS buffer has
  1188.    space available for keys held in the ANSIPLUS buffer, they are moved into the
  1189.    standard ROM BIOS buffer. You configure this buffer by specifying the total
  1190.    number of keys to be buffered.
  1191.  
  1192.  * The keyboard repeat rate determines how fast keys will be generated when a
  1193.    key is held down and not lifted.  For systems with enhanced keyboards,
  1194.    ANSIPLUS lets this rate be configured anywhere from 2 to 300 characters per
  1195.    second.  For most applications, an ANSIPLUS repeat rate setting greater than
  1196.    30 characters per second will take precedence over the keyboard repeat rate
  1197.    set by other programs, such as the DOS MODE program. Because of imprecise
  1198.    timing under Windows, however, this feature is disabled when Windows is
  1199.    running. If desired, it may also be disabled entirely to use the standard
  1200.    rate.
  1201.  
  1202.  * The keyboard typematic delay, which determines how long a key must be held
  1203.    down before repeated keys will start to be generated, is also configurable.
  1204.    ANSIPLUS accepts four settings from 250 ms to 1000 ms.
  1205.  
  1206.  * ANSIPLUS has the ability to translate single keystrokes to full commands or
  1207.    other pre-determined key sequences. This feature is called key reassignment,
  1208.    and it can be enabled or disabled without affecting the contents of the key
  1209.    reassignment tables stored within the ANSIPLUS device driver.
  1210.  
  1211.  * Ordinarily, key reassignment applies only to input keys requested from DOS,
  1212.    so programs that bypass DOS and use BIOS Interrupt 16h for keyboard input
  1213.    will not have any keys reassigned.  This is usually desirable, since major
  1214.    applications generally have built-in assumptions about the meaning of
  1215.    function and Alt keys, and these should be operative.  An ANSIPLUS feature is
  1216.    provided for those cases when you want to reassign keys for applications that
  1217.    bypass DOS and use Int 16h for keyboard input.
  1218.  
  1219.  * ANSIPLUS can also prevent ANSI key reassignment redefinition. This can be
  1220.    useful before trying ANSI files that contain unknown ANSI sequences that
  1221.    might redefine keys to execute undesired commands. A warning tone (like the
  1222.    theme from "Dragnet") will sound whenever an attempt to redefine a key
  1223.    reassignment is detected.
  1224.  
  1225.  * The space allocated for storing ANSI keystroke reassignments may also be
  1226.    configured. Each key reassignment requires approximately four bytes plus the
  1227.    length of the reassignment. You configure the total table size in bytes.
  1228.  
  1229.  * Normally, the Caps Lock key locks the alphabetic keys in upper case, and when
  1230.    a shift key is held down, letters are entered in lower case. This continues
  1231.    until Caps Lock is pressed again to unlock the Caps, and can often be
  1232.    confusing if you forget that Caps were locked. ANSIPLUS has an option to have
  1233.    shift-alphabetic keys cause the Caps to unlock, much like a typewriter
  1234.    releases its shift lock whenever a shift key is pressed.
  1235.  
  1236.  
  1237.  
  1238.                                        18
  1239.  
  1240.  
  1241.  * In many cases, when Caps Lock has been released by a shift-alphabetic key
  1242.    combination, mixed upper and lower case characters are needed for only a
  1243.    single entry, and Caps Lock should be reinstated thereafter. ANIPLUS includes
  1244.    an option to turn Caps Lock back on again when the Enter key is pressed after
  1245.    Caps were unlocked by a shift-alphabetic key, thus restoring Caps Lock on
  1246.    completion of an "entry."
  1247.  
  1248.  * For those users who find it more convenient to break out of programs with the
  1249.    Control-C key combination than with Control-Break, ANSIPLUS has an option to
  1250.    generate a keyboard break whenever Control-C is entered.
  1251.  
  1252.  * The "Non-Destructive" input function of the DOS driver reads an input key
  1253.    from the keyboard unofficially just to see what it is, allowing it to really
  1254.    be read later. This function is used to see what has been typed, and to read
  1255.    it or flush the keyboard buffer only if it matches some criterion (such as
  1256.    Escape or Control-C). Because the standard DOS keyboard driver always looks
  1257.    at the first key in the buffer, if it doesn't meet the criterion, no matter
  1258.    what is typed later will not be checked. ANSIPLUS gets around this with an
  1259.    option to return the last key from the buffer instead of the first.
  1260.  
  1261.  * Key stacking can be disabled to use another key stacking driver (for example,
  1262.    NDOS KEYSTACK.sys), or when typing files that contain unknown ANSI escape
  1263.    sequences that might execute undesired commands. When disabled, a warning
  1264.    tone will sound on any attempt to stack keys by ANSI escape sequence.
  1265.  
  1266. Tone Definition
  1267.  
  1268.  * The ANSIPLUS driver includes a timer-interrupt controlled Control-G beep tone
  1269.    generator that lets the beep tone be finished in parallel with subsequent
  1270.    processing. Multiple beeps are ignored if a tone is currently being output,
  1271.    so programs cannot be slowed down by a rapid series of beeps. The tone
  1272.    generator is used for both standard DOS console output and BIOS Int 10h Write
  1273.    TTY calls. If the tone generator is disabled, the original DOS beep tone will
  1274.    be used.
  1275.  
  1276.  * When Windows 3 is running in 386 mode, and a DOS program running in the
  1277.    background outputs a Control-G, the background program's virtual 8086 may not
  1278.    be running fast enough to accurately time the tone. Because of this, the tone
  1279.    can drag out and sound strange. Disabling ANSIPLUS tone generation under
  1280.    Windows restores the original Windows sound driver, but makes the tone
  1281.    frequency and duration non-configurable.
  1282.  
  1283.  * The beep tone definition is stored in a table in the ANSIPLUS driver that
  1284.    requires four bytes per frequency and duration. You can configure the size of
  1285.    this table by specifying the maximum number of notes allowed in the beep.
  1286.  
  1287.  
  1288.  
  1289.  
  1290.  
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296.  
  1297.                                        19
  1298.  
  1299. IV.  USING ANSIPLUS
  1300.  
  1301. This chapter describes your controls over ANSIPLUS when it is running. Five
  1302. subjects are covered: special keyboard functions; selecting and defining colors
  1303. with the SETCOLOR.exe utility program; controlling other ANSIPLUS features with
  1304. the SETAPLUS.exe utility program; creating batch files for configuring
  1305. applications; and editing ANSI-type escape sequence programs and files with the
  1306. ANSICOM.exe program.
  1307.  
  1308.                         SPECIAL KEYBOARD FUNCTIONS
  1309.  
  1310. ANSIPLUS uses special keyboard control to implement its scrolling functions. To
  1311. activate these, the Scroll-Lock (or Alt and Scroll-Lock) key is used as a hot
  1312. key toggle:
  1313.  
  1314.   Scroll-Lock       enables or disables screen scroll freezing and scroll-back
  1315.   Shift-Scroll-Lock enables or disables smooth scrolling
  1316.  
  1317. When your Scroll-Lock toggle is recognized by the computer, you will hear a
  1318. short tone. When the screen is frozen by Scroll-Lock, (as indicated by the light
  1319. on enhanced keyboards), normal key input is disabled and the following keys
  1320. apply:
  1321.  
  1322.   Home          Go to the top of the lines saved for scroll-back
  1323.   PageUp        Scroll up one page
  1324.   Shift         Scroll up one-half page tab
  1325.   Up arrow      Scroll up one line
  1326.  
  1327.   End           Go to the bottom (i.e., the original screen display)
  1328.   PageDn        Scroll down one page
  1329.   Tab           Scroll down one-half page
  1330.   Down arrow    Scroll down one line
  1331.  
  1332.   Left          View a lower numbered display page arrow
  1333.   Right         View a higher numbered display page arrow
  1334.   Escape        Cancel scroll lock, return to normal key processing
  1335.   Scroll lock   Cancel scroll lock, return to normal key processing
  1336.  
  1337. If you try to exceed the limit of travel up, down, left or right, a short low
  1338. pitched tone will sound. If you enter any key other than those above, you will
  1339. hear a short warbling sound, Scroll Lock will be canceled, the screen will
  1340. return to its normal display, and the key will be passed back to the running
  1341. program. If the screen was frozen during output, the PageDn, Tab and Down arrow
  1342. keys will allow one page, one-half page, and one line of additional output,
  1343. respectively, before freezing the screen again. Pressing a shift key will
  1344. release the screen as long as the shift key is held down.
  1345.  
  1346. Another special key combination is used with the ANSIPLUS screen saver. If the
  1347. screen saver is enabled, the following key combination may be used to blank the
  1348. screen without waiting the full blanking time:
  1349.  
  1350.   Alt-Ctrl-Scroll Lock      Blank the screen immediately
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.                                        20
  1357.  
  1358.                        SELECTING AND DEFINING COLORS
  1359.  
  1360. The SETCOLOR.exe utility program provides extensive control over colors for your
  1361. running system. With this program, the user can view the current colors, select
  1362. colors for use, create and apply named color schemes, edit the color palette,
  1363. set the border color, and save and load color definitions. Changes made with
  1364. SETCOLOR.exe are in effect only as long as your system is running. To change the
  1365. colors for system bootup, use the NEWAPLUS.exe program. SETCOLOR.exe is executed
  1366. by a command of the form:
  1367.  
  1368.         SETCOLOR <keyword> [<keyword> ...]
  1369.  
  1370. where each <keyword> selects a foreground or background color or other option.
  1371. If no <keyword> is supplied, you are presented with a menu of choices:
  1372.  
  1373.  * Color selection submenus let you choose from the current 16-color palette
  1374.    the screen colors that will be used for text foreground and background.
  1375.    ANSIPLUS maintains two sets of foreground and background colors: those that
  1376.    are currently on the screen, and default colors to be applied when an ANSI
  1377.    Set Graphics Rendition reset (i.e., Esc [0m) is detected. You can control
  1378.    both color combinations from this sub-menu.
  1379.  
  1380.  * The color palette determines the precise colors you will see in 16 color
  1381.    video modes. ANSIPLUS maintains two palettes: the current palette on the
  1382.    screen, and a default palette that is loaded when ANSIPLUS first starts and
  1383.    whenever the video display mode is changed. You can control both palettes
  1384.    using this option, but unless you specifically set the default for each color
  1385.    you redefine, your colors will only apply until the next display mode change.
  1386.  
  1387.  * The border color is generated for the "overscan" region on the outside edges
  1388.    of the screen. Again, ANSIPLUS maintains both a current border color and a
  1389.    default border color. You can select any available color as border color, and
  1390.    can control both the current and default borders with this option. As for
  1391.    palette changes, unless you specifically set the default border color, your
  1392.    border color will apply only until the next display mode change.
  1393.  
  1394. From the command line, colors may be selected by name or code number, where
  1395. codes 0-15 identify the 16 palette colors, 128-143 select foreground colors, and
  1396. 192-207 select background colors. The relationship between color names and code
  1397. numbers is depicted in Table 4-1:
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.                                        21
  1416.  
  1417.        +--------------------------------------------------------+
  1418.        |                      Table 4-1                         |
  1419.        |                Color Names and Codes                   |
  1420.        +-------------------+--------+--------------+------------+
  1421.        |                   | Color  |  Foreground  | Background |
  1422.        | Color Name        |  Code  |     Code     |    Code    |
  1423.        +-------------------+--------+--------------+------------+
  1424.        | BLACK             |    0   |      128     |     192    |
  1425.        | DKGRAY            |    8   |      136     |     200    |
  1426.        | GRAY              |    7   |      135     |     199    |
  1427.        | WHITE             |   15   |      143     |     207    |
  1428.        | RED               |    9   |      137     |     201    |
  1429.        | DKRED             |    1   |      129     |     193    |
  1430.        | BROWN             |    3   |      131     |     195    |
  1431.        | YELLOW            |   11   |      139     |     203    |
  1432.        | GREEN             |    2   |      130     |     194    |
  1433.        | LTGREEN           |   10   |      138     |     202    |
  1434.        | CYAN              |    6   |      134     |     198    |
  1435.        | LTCYAN            |   14   |      142     |     206    |
  1436.        | BLUE              |    4   |      132     |     196    |
  1437.        | LTBLUE            |   12   |      140     |     204    |
  1438.        | MAGENTA or PURPLE |    5   |      133     |     197    |
  1439.        | LTMAGENTA or PINK |   13   |      141     |     205    |
  1440.        +-------------------+--------+--------------+------------+
  1441.  
  1442. In 256 color modes, you may also use 256-511 to select the foreground, 512-767
  1443. to select the background, or 0-255 after the BORDER keyword to select the border
  1444. color.
  1445.  
  1446. Several modifying keywords can assist the color selection:
  1447.  
  1448.     DARK, DIM or NORMAL for low intensity colors,
  1449.     LIGHT, BRIGHT or INTENSE for high intensity colors,
  1450.     FOREGROUND or FGD for foreground following,
  1451.     BACKGROUND,  BGD, or ON for background following,
  1452.     REVERSE to swap the current foreground and background,
  1453.     BORDER for border color selection following, or
  1454.     DEFAULT to select the current colors as the default colors.
  1455.  
  1456. If named colors or color codes 0-15 are specified without the foreground or
  1457. background keywords, then the first color is assumed to be the foreground and
  1458. the second the background. Keywords may also be shortened; the first partial
  1459. match will be used. Several examples may help to clarify these rules:
  1460.  
  1461.     SETCOLOR bgd blue                sets the background to dark blue
  1462.     SETCOLOR light cyan blue default default colors are light cyan foreground
  1463.                                      and blue background
  1464.     SETCOLOR 7,0                     gray foreground, black background
  1465.     SETCOLOR bright green on blue    high intensity green foreground, dark blue
  1466.                                      background
  1467.     SETCOLOR border cyan             set the border color to cyan
  1468.     SETCOLOR reverse                 reverses the current foreground and
  1469.                                      background colors
  1470.     SETCOLOR rev                     reverses foreground and background
  1471.  
  1472.  
  1473.  
  1474.                                        22
  1475.  
  1476. Any unmatched keywords are checked against user-defined color schemes in a file
  1477. named SETCOLOR.sch. This editable ASCII text file, which should be placed in the
  1478. same directory as the SETCOLOR.exe program, contains any number of named color
  1479. schemes of the user's choice. User supplied color schemes are entered into the
  1480. file with a text editor, with each line entered in the form:
  1481.  
  1482.          <name> = <keyword> [<keyword> ...]
  1483.  
  1484. where <name> is the name of the user supplied color scheme, and <keyword> is any
  1485. valid SETCOLOR program keyword or other option. Table 4-2 shows the SETCOLOR.sch
  1486. file included with ANSIPLUS as a sample.
  1487.  
  1488.                +---------------------------------------+
  1489.                |               Table 4-2               |
  1490.                |       Sample Color Schemes File       |
  1491.                +---------------------------------------+
  1492.                | evening = light cyan blue border 17   |
  1493.                | night = light blue black border 17    |
  1494.                | dawn = yellow cyan border 35          |
  1495.                | daylight = light blue white border 17 |
  1496.                | sun = bright red yellow border 46     |
  1497.                | sky = blue light blue border 17       |
  1498.                | forest = black green border 24        |
  1499.                | earth = yellow brown border 38        |
  1500.                | regal = pink purple border 21         |
  1501.                | candycane = dark red pink border white|
  1502.                | bw = gray black border dkgray         |
  1503.                +---------------------------------------+
  1504.  
  1505. A user color scheme may be specifically selected on the SETCOLOR command line by
  1506. preceding its name with the keyword SCHEME, for example:
  1507.  
  1508.   SETCOLOR SCHEME JOE selects a color scheme named JOE
  1509.  
  1510. The SETCOLOR program also includes keyword options to reset, edit, load and save
  1511. the current color configuration. These include:
  1512.  
  1513.     RESET                 Install defaults as the current colors
  1514.     IBM or OEM            Install the OEM VGA/EGA palette as the current colors
  1515.     PALETTE               Edit the color definitions for the 16-color palette
  1516.     SAVEFILE <filename>   Save the current 16-color definitions in a file
  1517.     SAVE256 <filename>    Save the 256 VGA DAC color definitions in a file
  1518.     LOADFILE <filename>   Load a color definition file
  1519.     SAVECURRENT <file>    Save the 16 current colors as an executable program
  1520.     SAVEDEFAULT <file>    Save the 16 default colors as an executable program
  1521.     SAVEPROGRAM <file>    Save both the current and default colors as a program
  1522.  
  1523. The SAVEFILE, SAVE256 and LOADFILE keywords generate and load color definition
  1524. files. The color definition files created by SAVEFILE contain 36 lines: 32 lines
  1525. define the red, green and blue intensities for colors 0 to 15, both current and
  1526. default, and the other four define the current and default foreground,
  1527. background and border colors. Files created by SAVE256 contain 512 lines: 256
  1528. for the default DACs and 256 for the current DACs. Table 4-3 is a sample of
  1529. lines from a SAVEFILE color definition file.
  1530.  
  1531.  
  1532.  
  1533.                                        23
  1534.                       +------------------------------+
  1535.                       |          Table 4-3           |
  1536.                       | Sample Color Definition File |
  1537.                       +------------------------------+
  1538.                       |      Default = 142,196       |
  1539.                       |      DBorder = 0,81,162      |
  1540.                       |     DColor 2 = 16,162,81     |
  1541.                       |     DColor 3 = 113,65,16     |
  1542.                       |      DColor 4 = 0,0,105      |
  1543.                       |      DColor 5 = 97,0,97      |
  1544.                       |      Current = 135,192       |
  1545.                       |        Border = 0,0,0        |
  1546.                       |      Color 2 = 0,170,0       |
  1547.                       |     Color 3 = 0,170,170      |
  1548.                       |      Color 4 = 0,0,170       |
  1549.                       |     Color 5 = 170,0,170      |
  1550.                       +------------------------------+
  1551.  
  1552. Users are free to edit color definition files to create their own colors, to
  1553. delete any lines from them, or to put the lines in any order except that all
  1554. default color definitions must precede all current color definitions in the
  1555. file. If no file name is given for a LOADFILE, SAVEFILE or SAVE256 request, the
  1556. file name SETCOLOR.def in the current directory will be used. LOADFILE checks
  1557. the system PATH for color definition files to be loaded, so any commonly used
  1558. color files can reside in a directory on the PATH.
  1559.  
  1560. The SAVECURRENT, SAVEDEFAULT, and SAVEPROGRAM keyword options create executable
  1561. ".com" files that can be called later by name to install colors. These programs
  1562. can also be edited by the ANSICOM.exe utility program.
  1563.  
  1564. To provide additional user control over 16-color programs, such as DBASE III or
  1565. DOS 5.0 EDIT.com, that set their own palettes or border colors but do not
  1566. restore the palette on completion, or to simply force a color scheme on a
  1567. program that defines its own, ANSIPLUS can lock the color palette, preventing a
  1568. program from loading the PAL/DAC and border color registers by BIOS calls. This
  1569. feature is controlled by two SETCOLOR options:
  1570.  
  1571.   LOCKPAL      enable locked color palette, ignore BIOS calls defining colors
  1572.   UNLOCKPAL    disable locked color palette, allow programs to define colors
  1573.  
  1574. Palette locking should only be used when all other means of control fail. It is
  1575. intended to be invoked as part of batch files that execute applications to be
  1576. controlled, locking the palette before the program runs, and unlocking it after
  1577. it completes. The feature should never be enabled all of the time because it
  1578. will keep well behaved programs from making color changes too.
  1579.  
  1580. The SETCOLOR program also controls ANSIPLUS VGA monochrome monitor emulation.
  1581. Two keywords enable or disable this feature:
  1582.  
  1583.   MONOCHROME   begins VGA monochrome monitor emulation; and
  1584.   COLOR        ends VGA monochrome monitor emulation and restores colors.
  1585.  
  1586. And finally, SETCOLOR provides three reporting options:
  1587.  
  1588.   SHOW         displays the 16 current colors in a band across the screen
  1589.   HELP         gives a brief description of how to use the SETCOLOR program
  1590.   SCHEME HELP  lists the available color schemes in file SETCOLOR.sch
  1591.  
  1592.                                        24
  1593.  
  1594.                     CONTROLLING OTHER ANSIPLUS FEATURES
  1595.  
  1596. The SETAPLUS.exe utility program is used to enable and disable various ANSIPLUS
  1597. features while the system is running. It can also be used to set the video
  1598. display mode, character height, video page and graphics mode text treatment
  1599. options, to define or list key reassignments, or to define the Control-G beep
  1600. tone. Changes made with SETAPLUS.exe are in effect only as long as your system
  1601. is running. To change ANSIPLUS features for system bootup, use the NEWAPLUS.exe
  1602. program. SETAPLUS.exe is executed by a command of the form:
  1603.  
  1604.         SETAPLUS <keyword> [<keyword> ...]
  1605.  
  1606. where each <keyword> selects an ANSIPLUS feature or other option. As for the
  1607. SETCOLOR.exe utility, if no <keyword> is supplied, you are presented with a menu
  1608. of choices. These choices are shown in Table 4-4 below.
  1609.  
  1610.    +------------------------------------------------------------------------+
  1611.    |                             Table 4-4                                  |
  1612.    |                     SETAPLUS Main Menu Options                         |
  1613.    +-----------+------------------------------------------------------------+
  1614.    | Report    | Display current ANSIPLUS optional feature settings         |
  1615.    | Mode      | Set the video display mode                                 |
  1616.    | Height    | Set the displayed character height                         |
  1617.    | Keyboard  | Caps Lock, Ctrl-C and key read-ahead options               |
  1618.    | Assign    | Key reassignment enable/disable option and key definition  |
  1619.    | Tone      | Control-G beep tone generation options                     |
  1620.    | Color     | Mode set color, blink, bright key echo and VGA mono options|
  1621.    | Display   | Screen saver, graphics mode cursor and retrace wait options|
  1622.    | Scrolling | Scroll-Lock, scroll-back and smooth scrolling options      |
  1623.    | Undo      | Undo all feature changes since starting the main menu      |
  1624.    | Quit      | Quit and return to DOS                                     |
  1625.    +-----------+------------------------------------------------------------+
  1626.  
  1627. From the SETAPLUS command line, you control each ANSIPLUS feature with its own
  1628. selection keywords. These selectors are shown in Table 4-5 on page 25. When
  1629. used in combination with the following keywords, each controllable feature can
  1630. be enabled and disabled easily:
  1631.  
  1632.     ON, YES, or TRUE to enable the preceding feature,
  1633.     ENABLE to enable all following listed features,
  1634.     OFF, NO, or FALSE to disable the preceding feature,
  1635.     DISABLE to disable all following listed features, and
  1636.     RESET to set all features to their default values.
  1637.  
  1638. The following examples illustrate use of the SETAPLUS command line to control
  1639. ANSIPLUS features:
  1640.  
  1641.     SETAPLUS bright off              Disable bright key echo
  1642.     SETAPLUS enable capsunlock saver Enable screen saver and Caps reset on
  1643.                                      Shift-alpha
  1644.     SETAPLUS reset                   Reset all features to their default status
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.                                        25
  1652.  
  1653.  
  1654.  
  1655.  
  1656.         +-------------------------------------------------------------------+
  1657.         |                           Table 4-5                               |
  1658.         |              SETAPLUS Feature Selection Keywords                  |
  1659.         +------------+------------------------------------------------------+
  1660.         | SETCOLORS  | Install default (ANSIPLUS) colors on mode sets       |
  1661.         | DOSSET256  | Load default colors on DOS 256-color mode sets       |
  1662.         | WINSET256  | Load default colors on Windows 256-color mode sets   |
  1663.         | NOBLINK    | Enable 16-color text mode background (disable blink) |
  1664.         | BRIGHT     | Highlight echoed keys (bright key echo)              |
  1665.         | LOCKPAL    | Prevent palette/DAC color changes by programs        |
  1666.         | MONOCHROME | VGA monochrome monitor emulation                     |
  1667.         | SAVER      | Enable screen saver (blanker)                        |
  1668.         | READ60H    | Read key controller scan codes in screen saver       |
  1669.         | MSMOUSE    | Use MS mouse Int 33h polling in screen saver         |
  1670.         | PS2MOUSE   | Use PS/2 Int 74h mouse event interrupts in saver     |
  1671.         | PSEUDOCURS | Generate pseudo-cursor in VGA/EGA graphics modes     |
  1672.         | CURSOR256  | Generate pseudo-cursor in 256-color graphics modes   |
  1673.         | TTYTRAP    | Trap ANSI escape sequences in BIOS Write TTY         |
  1674.         | RETRACE    | Wait for retrace before setting palette registers    |
  1675.         | CAPSUNLOCK | Unlock Caps Lock with shift/letter key combination   |
  1676.         | CAPSRELOCK | Relock Caps with carriage return after shift/letter  |
  1677.         | CTRLC      | Generate Control-Break when Control-C is entered     |
  1678.         | NDLAST     | Read last key in buffer with non-destructive input   |
  1679.         | STACK      | Enable key stacking                                  |
  1680.         | KEYASSIGN  | Enable ANSI key reassignment                         |
  1681.         | BIOSASSIGN | Apply key reassignment at BIOS Int 16h level         |
  1682.         | NODEFKEY   | Prevent ANSI key reassignment redefinition           |
  1683.         | BEEP       | Use ANSIPLUS Control-G beep tone generator           |
  1684.         | WINBEEP    | Allow ANSIPLUS beep tone under Windows               |
  1685.         | LOCK       | Allow Scroll Lock key to freeze screen               |
  1686.         | ALTLOCK    | Require Alt-Scroll-Lock when freezing screen         |
  1687.         | SCROLLBACK | Enable scroll-back of lines scrolled off top         |
  1688.         | WINBACK    | Allow scroll-back under Windows                      |
  1689.         | XMSBACK    | Preserve scroll-back data using XMS or HMA memory    |
  1690.         | BIOSBACK   | Capture lines scrolled by BIOS call                  |
  1691.         | CLSBACK    | Capture erased pages never scrolled up               |
  1692.         | PAGEPROTECT| Protect 2nd display page from scroll-back storage    |
  1693.         | SMOOTH     | Enable smooth scrolling                              |
  1694.         | WINSMOOTH  | Allow smooth scrolling under Windows                 |
  1695.         | SPEEDUP    | Speed up smooth scroll when delaying computer        |
  1696.         | BIOSCROLL  | Use BIOS calls for text mode screen scrolling        |
  1697.         +------------+------------------------------------------------------+
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.                                        26
  1711.  
  1712.  
  1713. Other command line options include:
  1714.  
  1715.      MODE <decimal mode number> to set the video display mode,
  1716.      HEIGHT <height> to set the text character height,
  1717.      PAGE <page> to set the video page,
  1718.      KEYDEF to enter key reassignment definitions from the keyboard,
  1719.      KEYFILE <file name>  to load key reassignment definitions from a file,
  1720.      LISTKEYS to list all current key reassignments,
  1721.      KEYSTACK <text> to add keys or delays to the keyboard buffer,
  1722.      RATE <char/sec> to set the keyboard "typematic" repeat rate,
  1723.      DELAY <quartersecs> to set the typematic key delay,
  1724.      BLANKTIME <minutes> to set the screen saver blanking time,
  1725.      TONE <frequency, duration list> to set the Control-G beep tone,
  1726.      TEXT or TREATMENT to reset graphics mode text treatments,
  1727.      SHADOW, BOLD,  ITALICS, UNDERLINE or OUTLINE to enable text treatments,
  1728.      STATUS to report the current video mode, number of colors, etc.,
  1729.      FEATURES to report the settings of all ANSIPLUS features,
  1730.      REPORT to show both STATUS and FEATURES, and
  1731.      HELP to show all keyword options.
  1732.  
  1733. Two keyword options are provided for managing the interrupt vectors used by
  1734. ANSIPLUS:
  1735.  
  1736.       INTERRUPT      Displays, to the extent possible, the chain of programs
  1737.                      attached to each following selected interrupt
  1738.       LINK           Relinks ANSIPLUS to the selected interrupt(s)
  1739.  
  1740. You may specify interrupt selectors as either hexadecimal numbers or special
  1741. keywords:
  1742.  
  1743.       KEYEVENT       Interrupt 09h Key Event
  1744.       VIDEO          Interrupt 10h Video
  1745.       SYSTEMSERVICE  Interrupt 15h System Services
  1746.       KEYREQUEST     Interrupt 16h Keyboard Request
  1747.       KEYBREAK       Interrupt 1Bh Keyboard Break
  1748.       TIMERTICK      Interrupt 1Ch User Timer Tick
  1749.       DOSTTY         Interrupt 29h DOS Fast TTY Output
  1750.       MULTIPLEX      Interrupt 2Fh Multiplex, and
  1751.       PS2MOUSE       Interrupt 74h PS/2 Mouse Event
  1752.  
  1753. For example, SETAPLUS INTERRUPT 2F will list the programs attached to the DOS
  1754. Int 2Fh Multiplex interrupt.
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.                                        27
  1770.  
  1771.  
  1772. All the features controlled by SETAPLUS are described in Chapter 2 under
  1773. Changing the ANSIPLUS Startup Configuration, starting on page 12, except for
  1774. three:
  1775.  
  1776.  * To reassign keys, use the KEYDEF keyword. You will be prompted for the key to
  1777.    reassign; after that, you type in the corresponding key reassignment, and
  1778.    terminate it with the End key.
  1779.  
  1780.  * To add keys to the keyboard buffer, use the keyword KEYSTACK, followed by any
  1781.    number of quoted strings, key scan and character codes (scan code times 256
  1782.    plus ASCII character code), or time delay directives (/Wnnn for timer ticks,
  1783.    or /Dnnn for milliseconds). The following example enters "Dir", waits one
  1784.    second, then enters " *.*" and a carriage return:
  1785.  
  1786.      SETAPLUS KEYSTACK "Dir" /W18 " *.*" 13
  1787.  
  1788.  * To define the beep sound from the command line, use SETAPLUS and follow the
  1789.    keyword TONE with zero, one or more frequencies in Hertz and durations in
  1790.    milliseconds. For example,
  1791.  
  1792.      SETAPLUS TONE            installs the default 880hz 385ms tone, and
  1793.      SETAPLUS TONE 1397,110,1047,165    defines a two-tone Control-G beep.
  1794.  
  1795.    To define the beep sound from the SETAPLUS main menu, select Tone Definition
  1796.    and run through the feature options.
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.                                        28
  1829.  
  1830.                         CREATING APPLICATION BATCH FILES
  1831.  
  1832. Almost all DOS applications should run without change when ANSIPLUS is
  1833. installed. However, in a few cases it may be desirable to create a batch file
  1834. that prepares the system for an application, runs it, and then cleans up
  1835. afterward. There are three reasons for creating these application batch files:
  1836.  
  1837.  * To restore the normal DOS command shell video mode and colors after the
  1838.    program ends;
  1839.  
  1840.  * To install a color palette for the program to use when it runs; or
  1841.  
  1842.  * To enable or disable ANSIPLUS features that conflict with the program.
  1843.  
  1844. Many DOS application programs do not completely restore the video state on
  1845. completion. The common problems seen (with examples in parentheses) are:
  1846.  
  1847.  * The program sets the color palette, usually to the OEM default, but doesn't
  1848.    restore it on completion (DOS 5.0 EDIT.com, DBASE III).
  1849.  
  1850.  * The program sets the border color, but doesn't restore it, or sets it to
  1851.    black on completion (DBASE III).
  1852.  
  1853.  * The program turns blink on, but doesn't restore it on completion (DOS 5.0
  1854.    EDIT.com, DBASE III).
  1855.  
  1856.  * The program selects a video mode, but doesn't restore the original one on
  1857.    completion (DOS 5.0 EDIT.com, DBASE III).
  1858.  
  1859.  * The program selects a video mode and restores it on completion, but doesn't
  1860.    restore the text height if it is not standard for the video mode (Quattro Pro
  1861.    3.0 and others).
  1862.  
  1863. There are four simple options for restoring the ANSIPLUS video mode and colors
  1864. after running an application that sets its own mode, palette or border color:
  1865.  
  1866.  * The first option can be used to restore only the border color after an
  1867.    application has run. Suppose the border color is normally palette code 17,
  1868.    then the following batch file will set the border after the application (in
  1869.    this example, DOS EDIT.com) runs:
  1870.  
  1871.         @ECHO OFF
  1872.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  1873.         SETCOLOR BORDER 17
  1874.  
  1875.  * The second option will restore the entire default ANSIPLUS palette and border
  1876.    color after the application runs:
  1877.  
  1878.         @ECHO OFF
  1879.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  1880.         SETCOLOR RESET
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.                                        29
  1888.  
  1889.  
  1890.  * The third option requires creating a small .com file that will load an entire
  1891.    color scheme. This can be done at any time by hitting the letter "S" from the
  1892.    SETCOLOR.exe palette definition screen, or it can be done from the DOS
  1893.    command level with a command like:
  1894.  
  1895.         SETCOLOR SAVEPROGRAM MYCOLORS
  1896.  
  1897.    This will create a program called MYCOLORS.com, which loads the 16-color
  1898.    palette and border colors that were in effect when the program was created.
  1899.    The batch file for the application can then use this program to restore the
  1900.    color scheme on completion:
  1901.  
  1902.         @ECHO OFF
  1903.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  1904.         MYCOLORS
  1905.  
  1906.  * The fourth option saves and restores the video mode, character height and
  1907.    foreground/background color selection, and loads the ANSIPLUS default palette
  1908.    after the application completes. The batch file uses the PUSHVID.com and
  1909.    POPVID.com programs provided with ANSIPLUS:
  1910.  
  1911.         @ECHO OFF
  1912.         PUSHVID
  1913.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  1914.         POPVID
  1915.  
  1916.    This is the best technique to use when running DOS in a text mode other than
  1917.    25 lines by 80 columns, because it will restore both the video display mode
  1918.    and text height.
  1919.  
  1920. The options for controlling colors used by applications depend on whether custom
  1921. colors are desired for the application and whether the application loads its own
  1922. palette:
  1923.  
  1924.  * If the application ordinarily uses ANSIPLUS's colors when it runs, then it
  1925.    will use any ANSIPLUS color palette in effect when it begins execution, so a
  1926.    .com color scheme file saved from the SETCOLOR.exe palette definition screen,
  1927.    or by a SETCOLOR SAVEPROGRAM APPCOLOR command, can be used to load a custom
  1928.    color scheme before running the application:
  1929.  
  1930.         @ECHO OFF
  1931.         APPCOLOR
  1932.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  1933.         MYCOLORS
  1934.  
  1935.    Because most DOS application programs select a video mode when they start up,
  1936.    be sure that the color scheme saved in APPCOLOR.com is saved as a default
  1937.    color scheme.
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.                                        30
  1947.  
  1948.  
  1949.  * To use the ANSIPLUS palette for an application that installs its own palette,
  1950.    the palette must be locked before the program starts and unlocked after it
  1951.    completes:
  1952.  
  1953.         @ECHO OFF
  1954.         LOCKPAL
  1955.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  1956.         UNLOKPAL
  1957.  
  1958.    Warning: Palette locking should only be used when all other means of control
  1959.    fail. The feature should never be left enabled all of the time because it
  1960.    will keep well behaved programs from making any color changes.
  1961.  
  1962.  * To use custom colors for an application that wants to install its own
  1963.    palette, the custom colors are loaded before the palette is locked:
  1964.  
  1965.         @ECHO OFF
  1966.         APPCOLOR
  1967.         LOCKPAL
  1968.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  1969.         UNLOKPAL
  1970.         MYCOLORS
  1971.  
  1972. In the event of a conflict between an ANSIPLUS feature and an application, the
  1973. feature can be disabled before running the application and enabled again after
  1974. it completes. For example, the following batch file turns off the screen saver
  1975. while running an application:
  1976.  
  1977.         @ECHO OFF
  1978.         SETAPLUS DISABLE SAVER
  1979.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  1980.         SETAPLUS ENABLE SAVER
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.                                        31
  2006.  
  2007.                      EDITING ANSI ESCAPE SEQUENCE PROGRAMS
  2008.  
  2009. After using ANSIPLUS for a while, the user will find it desirable to create
  2010. short programs for frequently used video modes, color selections or definitions,
  2011. key reassignments, etc. The ANSICOM.exe utility program provides this facility:
  2012. with it, the user can create and edit small executable ".com" files or small
  2013. printable text files that contain ANSI escape sequences. ANSICOM is executed
  2014. with the following command:
  2015.  
  2016.      ANSICOM <filename>
  2017.  
  2018. where <filename> is the name of the file to be edited. Your file to edit is
  2019. selected using the following rules:
  2020.  
  2021.  * If no file name is supplied, you will be presented with a menu of ".com"
  2022.    files to select from.
  2023.  
  2024.  * If a file name is supplied, and it does not include a file type, a file type
  2025.    of ".com" is assumed.
  2026.  
  2027.  * When an existing ".com" file is edited, it is first checked for program code
  2028.    that outputs the ANSI escape sequences. If this is not found, ANSICOM will
  2029.    refuse to edit the file.
  2030.  
  2031.  * If the file to be edited is not a ".com" file, then it is assumed to be a
  2032.    non-executable printable text file.
  2033.  
  2034.  * If the named file is not found (including a search of the system PATH),
  2035.    ANSICOM will ask if a new file is to be created.
  2036.  
  2037. Once the file has been properly identified, a full-screen editing display is
  2038. presented, and you can go to work. Use the F1 key for context sensitive help.
  2039.  
  2040. The ANSICOM full screen editing display automatically parses the user's entries
  2041. and identifies the kinds of ANSIPLUS escape sequences entered, including
  2042. incomplete escape sequences. ANSICOM will not allow the user to save a file
  2043. containing an incomplete escape sequence. Beyond that, it is the user's
  2044. responsibility to be sure that the escape sequences entered will do what he
  2045. wants.
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.                                        32
  2065.  
  2066.  
  2067. V.   ANSIPLUS ESCAPE SEQUENCES
  2068.  
  2069. This chapter lists and briefly describes each of the "ANSI" Escape sequences
  2070. recognized by ANSIPLUS. They are described in detail in the printed ANSIPLUS
  2071. manual. In the table, "#" represents any numeric parameter and "Esc" is the
  2072. Escape character (decimal 27, hexadecimal 1Bh):
  2073.  
  2074.  
  2075.      Control Sequence    Description
  2076.      ----------------    -----------
  2077.  
  2078.                    DISPLAY MODE AND CHARACTER SET
  2079.  
  2080.      Esc [#;#h           Set video display mode
  2081.  
  2082.      Esc [#;#l           Reset video display mode
  2083.  
  2084.      Esc [!#t            Select character set height: 8, 14 or 16 scan lines
  2085.  
  2086.      Esc [!#;...;#e      Select graphics mode text treatment options: bold,
  2087.                          underline, slant, shadow, outline, or reverse
  2088.  
  2089.      Esc [!#v            Select video page
  2090.  
  2091.  
  2092.                          CURSOR POSITIONING
  2093.  
  2094.      Esc [#;#H           Set cursor position
  2095.  
  2096.      Esc [#;#f           Set cursor position
  2097.  
  2098.      Esc [#A             Move cursor up
  2099.  
  2100.      Esc [#B             Move cursor down
  2101.  
  2102.      Esc [#C             Move cursor right
  2103.  
  2104.      Esc [#D             Move cursor left
  2105.  
  2106.      Esc [#s             Save cursor position, video mode, video page or colors
  2107.  
  2108.      Esc [#u             Restore cursor position, video mode, page or colors
  2109.  
  2110.  
  2111.                    COLOR SELECTION AND DEFINITION
  2112.  
  2113.      Esc [#;...;#m       Select current color attributes for output characters
  2114.  
  2115.      Esc [!#;#;#;#;#c    Define colors available, select palette, set up color
  2116.                          blinking, restore color definitions or palette
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.                                        33
  2124.  
  2125.  
  2126.  
  2127.      Control Sequence    Description
  2128.      ----------------    -----------
  2129.  
  2130.                       ERASE, INSERT AND DELETE
  2131.  
  2132.      Esc [#;#J           Clear the screen
  2133.  
  2134.      Esc [#;#;#K         Clear a line
  2135.  
  2136.      Esc [#;#L           Insert lines on the screen or in a line range
  2137.  
  2138.      Esc [#;#M           Delete lines from the screen or a line range
  2139.  
  2140.      Esc [#;#@           Insert characters on a line or a column range
  2141.  
  2142.      Esc [#;#P           Delete characters from a line or a column range
  2143.  
  2144.  
  2145.                      DRIVER STATUS AND CONTROL
  2146.  
  2147.      Esc [#;#n           Query ANSIPLUS status: cursor position, current color
  2148.                          selection, video mode and number of colors, screen and
  2149.                          character dimensions, color definitions, feature
  2150.                          settings, tone definition, key reassignment, etc.
  2151.  
  2152.      Esc [!#;...;#d      Enable or disable ANSIPLUS driver feature settings
  2153.  
  2154.      Esc [!#;...;#g      Define the Control-G beep tone
  2155.  
  2156.      Esc [#;...;#p       Define key reassignment (accepts quoted strings)
  2157.  
  2158.      Esc [!#;...;#k      Add keys to keyboard buffer (accepts quoted strings)
  2159.  
  2160.  
  2161. Besides supporting all the escape sequences accepted by the MS-DOS ANSI.sys
  2162. driver, ANSIPLUS accepts additional parameters for many, and includes several
  2163. entirely new control functions. See Chapter VI, Technical Notes, for
  2164. differences between ANSIPLUS and the ANSI.sys driver.
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.                                        34
  2183.  
  2184. VI.  TECHNICAL NOTES
  2185.  
  2186.  
  2187.                              ANSIPLUS AND WINDOWS 3
  2188.  
  2189. Users of Windows 3.0 and 3.1 should consider using ANSIPLUS as well. The
  2190. ANSIPLUS driver works well with DOS programs under Windows 3, and there are
  2191. advantages to using it in Windows 386 Enhanced Mode. Because ANSIPLUS is a CON
  2192. driver, local copies of it are included in each Windows 386 Enhanced Mode
  2193. virtual 8086. This means that all the ANSIPLUS internal state variables, and
  2194. those of its integrated console features, will be local to each virtual 8086, so
  2195. there is no way they can interfere with each other.
  2196.  
  2197. With DOS 5.0 or later, or with an XMS memory manager such as QEMM (using LOADHI)
  2198. or 386MAX, ANSIPLUS can be loaded into upper memory blocks above 640K to provide
  2199. a slightly larger program area below 640K. However, if Windows 3.0 will be run
  2200. in 386 Enhanced mode, it is strongly recommended that ANSIPLUS (or any other
  2201. ANSI driver) not be loaded into high memory using these methods, and that
  2202. ANSIPLUS load itself high instead. This is because Windows 3.0 does not localize
  2203. the XMS upper memory block area above 640K for its virtual 8086's, and so only
  2204. one global copy of ANSIPLUS would be shared among all virtual machines. This can
  2205. cause trouble: if, for example, a program in one window selects colors, then
  2206. those colors would also be in force for all DOS programs in other windows! This
  2207. has been fixed in Windows 3.1.
  2208.  
  2209. When the DISPLAY.sys driver is used with Windows 3.0 or 3.1, the colors and
  2210. other variables of either ANSIPLUS or the DOS ANSI.sys driver are not localized
  2211. to each virtual 8086. This appears to be because Windows only localizes the
  2212. first CON driver it finds on the DOS device chain, and this will be the most
  2213. recent CON device installed, which is DISPLAY.sys, not ANSIPLUS. Two system
  2214. setup changes are required to circumvent the problem:
  2215.  
  2216.  (1) Enter the following command to change the name of the ANSIPLUS driver in
  2217.      memory from "CON" to "CONAPLUS":
  2218.  
  2219.          SETAPLUS LOCALCON
  2220.  
  2221.      This command is automatically inserted into AUTOEXEC.bat by the ANSIPLUS
  2222.      INSTALL program when DISPLAY.sys is detected.
  2223.  
  2224.  (2) Add the following command to the [386Enh] section of the Windows SYSTEM.ini
  2225.      file:
  2226.  
  2227.          LOCAL=CONAPLUS
  2228.  
  2229.      This causes Windows to localize the ANSIPLUS driver to each virtual 8086.
  2230.      The SYSTEM.ini file is not altered by the ANSIPLUS INSTALL program.
  2231.  
  2232.  
  2233.  
  2234. Several ANSIPLUS features are affected by Windows. The ANSIPLUS driver detects
  2235. when Windows 3 is running, and automatically disables the screen blanker.
  2236. Disabling of four other features under Windows is user-configurable:
  2237.  
  2238.  
  2239.  
  2240.  
  2241.                                        35
  2242.  
  2243.  
  2244.  * On most computers, screen scroll-back should operate correctly when running
  2245.    full screen under Windows. However, when running DOS applications in a 386
  2246.    Enhanced Mode window, Windows will not maintain a full 32K of text mode RAM
  2247.    for the application, and because of this, scroll-back text can be lost. This
  2248.    is most likely to occur when the focus is switched from task to task, as with
  2249.    the Alt-Tab key, or when changing display modes.
  2250.  
  2251.    The ANSIPLUS driver attempts to compensate for lost video memory under
  2252.    Windows, but the NEWAPLUS and SETAPLUS programs also provide an option to
  2253.    totally disable scroll-back when Windows is running. This feature should be
  2254.    disabled only if you don't want to use scroll-back under Windows. If all DOS
  2255.    applications are run full screen, then it should be enabled.
  2256.  
  2257.    The situation for DOS applications running in a window is improved if the
  2258.    PIF file for the application (or the file DOSPRMPT.pif for the MS-DOS prompt)
  2259.    has Video Memory set to High Graphics and Retain Video Memory checked under
  2260.    Advanced Options (with the PIF Editor). These settings are recommended for
  2261.    all DOS applications that depend on ANSIPLUS scrolling features under
  2262.    Windows. A sample PIF file with these settings for the MS-DOS prompt is
  2263.    included with the ANSIPLUS package in the file APLUS.pif. If these PIF
  2264.    settings are not used, then the first time that ANSIPLUS needs to access the
  2265.    scroll-back storage area, Windows will present a message claiming that there
  2266.    is not enough memory for the application to correctly display information. If
  2267.    this happens, just click on OK, then hit Alt-Enter to switch to a full screen
  2268.    display and proceed.
  2269.  
  2270.  * If smooth scrolling does not perform well under Windows, or if there are
  2271.    other problems, then smooth scrolling can be disabled in Windows. In general,
  2272.    if scroll-back doesn't work under Windows, then smooth scrolling won't work
  2273.    either.
  2274.  
  2275.  * When Windows is running in 386 Enhanced mode, and a DOS program running in
  2276.    the background outputs a Control-G, the background program's virtual 8086 may
  2277.    not be running fast enough to accurately time the tone. Because of this, the
  2278.    tone can drag out and sound strange. Disabling ANSIPLUS tone generation under
  2279.    Windows restores the original Windows sound driver, but makes the tone
  2280.    frequency and duration non-changeable.
  2281.  
  2282.  * Some 256-color drivers for Windows assume that the OEM 256-color palette has
  2283.    been loaded when the 256-color mode was selected, and never define the colors
  2284.    that Windows will use. Because of this, ANSIPLUS normally does not load its
  2285.    default colors when a 256-color mode is selected under Windows. By enabling
  2286.    this feature,  using such a driver could cause the wrong standard colors to
  2287.    be displayed by Windows.
  2288.  
  2289.  
  2290.  
  2291.  
  2292.  
  2293.  
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.                                        36
  2301.  
  2302.                   ANSIPLUS and the 4DOS or NDOS Command Shells
  2303.  
  2304. The ANSIPLUS driver is compatible with the 4DOS and NDOS command shells. Two
  2305. ANSIPLUS features are specifically adapted to 4DOS/NDOS:
  2306.  
  2307.  * ANSIPLUS supports key stacking (for 4DOS 4.0+ and NDOS Version 7.0), so the
  2308.    KSTACK.com TSR does not need to be loaded. Key stacking capacity is limited
  2309.    to the size of ANSIPLUS's key buffer, which is configurable by INSTALL/
  2310.    NEWAPLUS up to 512 keys. ANSIPLUS key stacking can be disabled if KSTACK.com
  2311.    or KEYSTACK.sys is preferred.
  2312.  
  2313.  * The SETCOLOR.exe utility program can be used as a replacement for the 4DOS
  2314.    or NDOS internal COLOR command, since SETCOLOR supports the syntax and all
  2315.    options of COLOR, plus many additional options. To do this, two commands
  2316.    should be added to AUTOEXEC.bat:
  2317.  
  2318.         SETDOS /i-COLOR
  2319.         ALIAS COLOR SETCOLOR
  2320.  
  2321.                    ANSIPLUS EXTENSIONS AND THE ANSI STANDARD
  2322.  
  2323. ANSIPLUS uses a number of added control parameters and includes entire new
  2324. control functions that are not part of the ANSI X3.64 standard, so do not expect
  2325. them to be supported by any other drivers or devices. The following added
  2326. ANSIPLUS functions are not standard ANSI:
  2327.  
  2328.     Esc [!#t            Select character set height
  2329.     Esc [!#;...;#e      Select graphics mode text treatment options
  2330.     Esc [!#v            Select video page
  2331.     Esc [!#;#;#;#;#c    Define colors available, select palette, setup blinking
  2332.     Esc [!#;...;#d      Enable or disable ANSIPLUS driver features
  2333.     Esc [!#;...;#g      Define Control-G beep tone
  2334.     Esc [!#;...;#k      Add keys to keyboard buffer
  2335.  
  2336. The following ANSIPLUS functions accept standard ANSI parameters, but also
  2337. accept added non-standard parameters:
  2338.  
  2339.     Esc [#;#h           Set video mode
  2340.     Esc [#s             Save cursor position, video mode, etc.
  2341.     Esc [#u             Restore cursor position, video mode, etc.
  2342.     Esc [#;#J           Clear the screen
  2343.     Esc [#;#;#K         Clear a line
  2344.     Esc [#;#L           Insert lines on the screen
  2345.     Esc [#;#M           Delete lines from the screen
  2346.     Esc [#;#@           Insert characters on a line
  2347.     Esc [#;#P           Delete characters from a line
  2348.     Esc [#;...;#m       Select current color attributes for output characters
  2349.     Esc [#;#n           Query ANSIPLUS status: cursor position, colors, etc.
  2350.     Esc [#;...;#p       Define key reassignment
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.                                        37
  2360.  
  2361.  
  2362.                     ESCAPE SEQUENCE RECOGNIZER ENHANCEMENTS
  2363.  
  2364. To simplify program generation of control sequences, the ANSIPLUS escape
  2365. sequence recognizer syntax has been relaxed:
  2366.  
  2367.  * Blanks between parameters in escape sequences are ignored;
  2368.  
  2369.  * Commas are allowed as separators in addition to semicolons;
  2370.  
  2371.  * Either single or double quotes may be used around character parameters;
  2372.  
  2373.  * Parameter values over 255 (i.e., up to 32,767) are accepted for certain
  2374.    commands. Plus and minus signs are also accepted.
  2375.  
  2376. Unrecognized escape sequences are passed through by the driver unaltered. The
  2377. Esc character is trapped only when followed by a left bracket ("["), so programs
  2378. that write the escape character (a left arrow) to the screen will continue to do
  2379. so after the driver is installed.
  2380.  
  2381.  
  2382.                    DIRECT ACCESS TO VIDEO RAM VS. BIOS CALLS
  2383.  
  2384. ANSIPLUS uses direct access to video RAM in all VGA/EGA text and most common
  2385. graphics modes. However, BIOS calls will be used to output characters for three
  2386. classes of graphics modes:
  2387.  
  2388.  * Modes with 256 colors;
  2389.  
  2390.  * Modes that require more than 64K bytes of video RAM (i.e., 16 color graphics
  2391.    modes exceeding 800x600 resolution); and
  2392.  
  2393.  * Unrecognized (usually CGA or Hercules) graphics modes.
  2394.  
  2395. When BIOS calls are used, output is much slower, and "transparent" mode output,
  2396. graphics mode text treatments, and insert/delete characters are also not
  2397. supported. Future versions of ANSIPLUS may extend direct video RAM access to
  2398. some of these modes.
  2399.  
  2400.  
  2401.                               INSTALLATION CHECKS
  2402.  
  2403. ANSIPLUS responds to the Int 2Fh test for ANSI.sys installation. When Int 2Fh is
  2404. called with AX=1A00h, ANSIPLUS will return AL=0FFh to indicate that ANSI.sys is
  2405. installed.
  2406.  
  2407. The Int 2Fh response is expanded if registers BX="AN", CX="SI" and DX="++".
  2408. Then, in addition to returning AL=0FFh, ANSIPLUS returns a pointer in ES:BX to
  2409. the ANSIPLUS Int 29h entry point. A further installation confirmation can be
  2410. made by checking the 8 bytes at ES:[BX-12] for the string "ANSIPLUS". The
  2411. ANSIPLUS version number will be a 4 character string at ES:[BX-4], containing,
  2412. for example, "3.01".
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.                                        38
  2419.  
  2420.                                HOOKED INTERRUPTS
  2421.  
  2422. To implement all its features, ANSIPLUS attaches itself to nine system
  2423. interrupts. Two are replaced (1Bh and 29h), and the remaining 7 are supplemented
  2424. (i.e., ANSIPLUS calls the original interrupt but extends its function). If
  2425. possible, ANSIPLUS should always be installed after any other drivers that take
  2426. over any of these interrupts without passing calls through. The following table
  2427. lists the ANSIPLUS hooked interrupts and reasons for each:
  2428.  
  2429. +------------------------------------------------------------------------------+
  2430. |                                  Table 6-1                                   |
  2431. |                          ANSIPLUS Hooked Interrupts                          |
  2432. +----------------------+-------------------------------------------------------+
  2433. |Interrupt Description | Reason                                                |
  2434. +----------------------+-------------------------------------------------------+
  2435. |1Bh Keyboard Break    | Promote Control-Break to front of key buffer          |
  2436. |                      |                                                       |
  2437. |29h DOS Write Char    | Faster DOS screen output                              |
  2438. |                      |                                                       |
  2439. |09h Key Event         | Screen saver; scroll lock; scroll-back; key buffer    |
  2440. |                      | extension; smooth scroll toggle; other special key    |
  2441. |                      | processing                                            |
  2442. |                      |                                                       |
  2443. |10h BIOS Video        | Palette/DAC control; beep tone generation; screen     |
  2444. |                      | saver; smooth scroll; scroll lock; scroll-back; BIOS  |
  2445. |                      | Write TTY ANSI trap                                   |
  2446. |                      |                                                       |
  2447. |15h System Services   | Key processing                                        |
  2448. |                      |                                                       |
  2449. |16h BIOS Get Key      | Key buffer management; highlighted key echo; scroll-  |
  2450. |                      | lock and scroll-back; key reassignment; repeat rate   |
  2451. |                      |                                                       |
  2452. |1Ch User Timer Tick   | Screen saver; smooth scroll; color blinking; beep tone|
  2453. |                      | generation                                            |
  2454. |                      |                                                       |
  2455. |2Fh Multiplex         | Installation checks; special functions; Windows init  |
  2456. |                      | and exit processing; 4DOS/NDOS key stacking           |
  2457. |                      |                                                       |
  2458. |74h PS/2 Mouse Event  | Screen saver                                          |
  2459. +----------------------+-------------------------------------------------------+
  2460.  
  2461. The DOS KEYB program for international keyboard support hooks the Int 09h Key
  2462. Event interrupt without passing calls through to whatever was installed before
  2463. (ie., to ANSIPLUS). Therefore, if the KEYB program is being used to set up the
  2464. keyboard, the following command MUST be executed after loading KEYB, otherwise
  2465. most ANSIPLUS keyboard related features will not work:
  2466.  
  2467.     SETAPLUS LINK KEYEVENT
  2468.  
  2469. This command will re-install ANSIPLUS on the key event interrupt. The INSTALL
  2470. program will automatically add this command to AUTOEXEC.bat if it finds a
  2471. reference in it to KEYB.
  2472.  
  2473. If the DISPLAY.sys device driver for code page switching is being used, the
  2474. ANSIPLUS.sys device driver must be installed before DISPLAY.sys in CONFIG.sys.
  2475. The INSTALL program will also automatically handle this.
  2476.  
  2477.                                        39
  2478.  
  2479.  
  2480.  
  2481. If you suspect that a system interrupt is no longer accessible to ANSIPLUS
  2482. because of a TSR or device driver that has been loaded after ANSIPLUS, you can
  2483. test this with the command:
  2484.  
  2485.     SETAPLUS INTERRUPT <intnum>
  2486.  
  2487. which displays, to the extent possible, the chain of programs attached to any
  2488. selected interrupt. The <intnum> may be either a hexadecimal interrupt number or
  2489. one of the following keywords:
  2490.  
  2491.       KEYEVENT       Interrupt 09h Key Event
  2492.       VIDEO          Interrupt 10h Video
  2493.       SYSTEMSERVICE  Interrupt 15h System Services
  2494.       KEYREQUEST     Interrupt 16h Keyboard Request
  2495.       KEYBREAK       Interrupt 1Bh Keyboard Break
  2496.       TIMERTICK      Interrupt 1Ch User Timer Tick
  2497.       DOSTTY         Interrupt 29h DOS Fast TTY Output
  2498.       MULTIPLEX      Interrupt 2Fh Multiplex, and
  2499.       PS2MOUSE       Interrupt 74h PS/2 Mouse Event
  2500.  
  2501. If ANSIPLUS is missing from the listing, it can be relinked with the command:
  2502.  
  2503.     SETAPLUS LINK <intnum>
  2504.  
  2505.  
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.                                        40
  2537.  
  2538.