home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
progm
/
xbatch.zip
/
DD2.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-09-14
|
4KB
|
95 lines
rem colors %1=fg,%2=bg (box fg,bg); %3=emphasized, %4=fg,%bg (scrn fg,bg)
echo off
cls
DISPFILE screens.dat screen 1 colors %1 %2
GETCHAR noecho
CLRSCRN
DISPLAY "The CLRSCRN command is used to clear the screen." line 22 center clear
DISPLAY "Example: CLRSCRN" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
getchar NOECHO
CLRSCRN colors %1 %2
DISPLAY "You can specify the colors to be used." line 22 colors %1 %2 center clear
DISPLAY "Example: CLRSCRN colors 7 1" line 24 colors 7 0 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR NOECHO
cls
BOX from 4 10 to 20 70 colors %1 %2
DISPLAY "The BOX command can be used to clear a box on the screen." line 22 center clear
DISPLAY "Example: BOX from 4 10 to 20 70 colors 7 1" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR noecho
BOX from 4 10 to 20 70 colors %1 %2 single bright
DISPLAY "The box can have an optional border." line 22 center clear
DISPLAY "Example: BOX from 4 10 to 20 70 colors 7 1 single" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR noecho
box from 4 10 to 20 70
box from 4 10 to 20 70 color %2 border noclear
DISPLAY "The BOX command can also be used to just draw a border." line 22 center clear
DISPLAY "Example: BOX from 4 10 to 20 70 color 1 border noclear" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
getchar noecho
DISPLAY " " line 12 center
box from 4 10 to 20 70 colors %3 %2 single noclear bright
DISPLAY "You can also have a single line border." line 22 center clear
DISPLAY "Example: BOX from 4 10 to 20 70 colors 7 1 single noclear" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
getchar noecho
DISPLAY " " line 12 center
BOX from 4 10 to 20 70 colors %3 %2 double noclear bright
DISPLAY "Or a double line border." line 22 center clear
DISPLAY "Example: BOX from 4 10 to 20 70 colors 7 1 double noclear" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR NOECHO
cls
BOX from 4 10 to 20 70 colors %3 %2 single
DISPLAY "Any text." at 14 36 color %1
DISPLAY "The DISPLAY command lets you display text at any location on the screen." line 22 center clear
DISPLAY "Example: DISPLAY \"Any text.\" at 14 36" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR NOECHO
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "Centered text." line 2 center colors %2 %1
DISPLAY "You can center the text and specify the color." line 22 center clear
DISPLAY "Example: DISPLAY \"Centered text.\" line 2 center colors 1 7" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR NOECHO
cls
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "The GETCHAR command waits until the user presses a key." line 22 center clear
DISPLAY "Example: GETCHAR at 17 20 noecho" line 24 colors %4 %5 clear
DISPLAY "Press any key." line 12 center color %3
GETCHAR NOECHO at 17 20
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "You can specify which keys to wait for." line 22 center clear
DISPLAY "Example: GETCHAR at 17 20 noecho choices \"abc\" " line 24 colors %4 %5 clear
DISPLAY "Press the A, B, or C key." line 12 center color %3 bright
GETCHAR choices "abc" noecho at 17 20
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "You can specify that the key character should be echoed." line 22 center clear
DISPLAY "Example: GETCHAR at 17 20 choices \"abc\" " line 24 colors %4 %5 clear
DISPLAY "Press the A, B, or C key." line 12 center color %3 bright
GETCHAR choices "abc" at 17 20
BOX from 4 10 to 20 70 colors %1 %2 single
DISPLAY "You can specify control keys like the ESC key." line 22 center clear
DISPLAY "Example: GETCHAR at 17 20 noecho choices \"\27\" " line 24 colors %4 %5 clear
DISPLAY "Press the ESC key." line 12 center color %3 bright
GETCHAR choices "\27" noecho at 17 20
dd3 %1 %2 %3 %4 %5