home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
BEEHIVE
/
TESERACT
/
TESS-025.ZIP
/
K.DOC
< prev
next >
Wrap
Text File
|
1989-01-22
|
4KB
|
79 lines
CONTROL ( K.COM ) utility to set display mode on IBM Personal Computer
The CONTROL command is designed to function similar to the CONTROL
command used on large IBM mainframe computers running the MVS
operating system. The MVS CONTROL command has a short form of K and
is used to control the screen of the operators consoles. When the K
command is issued without any operands it will erase the screen.
There are many parameters for the MVS K command to perform console
tailoring functions and to control the many consoles often
connected to a large MVS system.
While the PC version of CONTROL does not have nearly the number of
options as the MVS version, it is only fitting that those functions
that are similar all be contained in K.COM. When I want to clear
the operators console under MVS, I enter K and press enter. Habits
are hard to break so when I, out of habit, enter K and press enter
on the PC I want the screen to be erased.
I use a 160K ram drive on my PC and I keep all of the most
frequently used commands on this small but super fast drive. PC-DOS
allocates space on a 160K drive in 512 byte sectors, so the minimum
amount of space used for any file is one 512 byte sector. If I used
a separate command file for each console function I need to
perform, I would use up several K of valuable ram drive space. By
combining all of the CLS, TOCOLOR, TOMONO etc. functions into a
single command, I not only save RAM space but I also improve
useability.
Most of the assembler code for CONTROL was taken from the VMODE
command which appeared in the July 1983, SOFTALK, "The Right To
Assemble" by Ray Duncan. I changed VMODE.ASM to include the
clear screen and monitor switch functions, and renamed it K.COM.
Timothy M. Hanes
ASYST Inc.
19414 Craigchester Ln.
Spring, Tx. 77388
(713) 350-1438
* If no mode number is entered clear the current display screen.
* ADD function "S" to switch to the opposite display.
Command format (with CONTROL.ASM linked as K.COM).
K [enter] without any parameter will clear the current display .
screen or you may issue K with a single parameter as described
below.
K [ S | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 ]
S = Switch to the opposite monitor. If issued
from the monochrome switch to color (mode 2), if issued
from the color monitor switch to monochrome (mode 7).
- Color Graphics adapter text modes
0 = 40 X 25 black and white text.
1 = 40 X 25 color text.
2 = 80 X 25 black and white text.
3 = 80 X 25 color text.
- Color Graphics adapter graphics modes
4 = 320 X 200 color.
5 = 320 X 200 black and white.
6 = 640 X 200 black and white.
- Monochrome mode
7 = Monochrome monitor.
7 = Monochrome monitor.