Category : Assembly Language Source Code
Archive   : DOCFILES.ZIP
Filename : STICK.DOC

 
Output of file : STICK.DOC contained in archive : DOCFILES.ZIP
STICK
Command

Jeff Prosise 1987/No. 20 (Utilities)


Purpose: Locks/unlocks a cursor size and shape set with CTYPE.COM
(Volume 6 Number 19); similarly locks/unlocks a choice of EGA foreground and
background colors; and permits selective replacement of the EGA BIOS code for
CGA emulation.

Format: [d:][path]STICK [/L+|-] [/E+|-] [/B+|-] [/C-| fg bg]

Remarks: STICK is a memory-resident (560 bytes) program that eliminates
several recurring problems connected with the Enhanced Graphics Adaptor (EGA)
and display. A non-resident utility such as CTYPE.COM can set a cursor size
and shape in DOS, and it can prevent the cursor loss frequently encountered
when exiting from utilities such as SideKick while using a 43-line EGA
display. CTYPE alone can do nothing when applications reset the cursor,
however, as they normally do. The STICK /L+ option locks in the cursor shape
for all but applications (such as 1-2-3) that bypass the PC BIOS cursor
routines altogether. To permit some applications (such as word processors)
to manipulate the cursor shape themselves, the STICK /L- option disables
cursor locking.

The STICK /C fg bg option sets EGA foreground and background colors
respectively, using the hex digits shown below:

0 Black 8 Gray
1 Blue 9 Bright Blue
2 Green A Bright Green
3 Cyan B Bright Cyan
4 Red C Bright Red
5 Magenta D Bright Magenta
6 Brown E Yellow
7 White F Bright White

The foreground color (fg) may range from 0 through F; background (bg)
values are limited to 0 through 7. A single space must separate each
parameter. The /C- option disables the color selection locking.

The STICK /E+ option substitutes STICK's own cursor emulation BIOS
code for the bug-ridden IBM emulation routines. By default, or by using the
/E- option, the IBM code is restored. Since the EGA provides an emulation
bit whose setting is stored in the BIOS data area, STICK provides an option
to set or reset this bit directly. If the /E+ option is active (emulation
on), STICK /B+ sets the bit value to 1 (disabling the EGA routines); STICK
/B- re-enables them.

Entered with no parameters, STICK reports the current settings of its
functions. Any or all optional parameters can be entered on a single command
line in either upper or lower case. The /L and /C options are implemented on
all video adapters; the /E switch is limited to EGA systems; /B is functional
on EGA and VGA-based machines.


Format: [d:][path]STICK [/L+|-] [/E+|-] [/B+|-] [/C-| fg bg]


  3 Responses to “Category : Assembly Language Source Code
Archive   : DOCFILES.ZIP
Filename : STICK.DOC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/