home *** CD-ROM | disk | FTP | other *** search
- echo off
- send $e[0m
- send $e[2J
- rem send $e[2J is the ANSI.SYS clear screen command. $e[J has the same
- rem effect but this is not correct usage of the standards set by ANSI and
- rem $e[2J will be recognized by some alternate screen drivers that do not
- rem recognize $e[J as a clear screen.
- send $_$_$_$_$_
- rem skipped 5 lines
- send What color do you like on black?$_
- send $e[31mred? $e[32mgreen?
- send $e[33m yellow? $e[34mblue? $e[35mmagenta? $e[36mcyan?$_$_$e[0m
- rem notice that what appears in two lines in the file is on one on the screen
- send $_$e[1mor maybe you like the above colors in their "intense" version$_
- rem notice it doesn't matter where $_ is put
- send $e[31mred? $e[32mgreen?
- send $e[33m yellow? $e[34mblue? $e[35mmagenta? $e[36mcyan$_$_$_$e[0m
- send You may think it's $e[33mbrown$e[0m and not $e[33myellow$e[0m but IBM$_
- send $ says it's $e[33myellow$e[0m and who are you to argue with$_$_
- send $e[34m
- send $ █████ █████ ██████$_
- send $ █ █ █ █ $_
- send $ █████ █ █ ██ $e[1;34mBLUE$e[0;34m$_
- send $ █ █ █ █ █$_
- send $ █████ █████ ██████$_$_$_$e[0m
- rem Note the $: SEND ignores leading spaces, so the $, which is also
- rem ignored is there to indent the rest of the line. Notice that the
- rem third line isn't aligned on the file but is aligned on the screen.
- rem The above also illustrates the use of extended ASCII code, in this
- rem case, code 219: █
- pause
- send $e[2J$_$_$_$_$_$_$_$_$_
- send $ We all know that its more fun to h
- send ave a background color$_ but before tha
- send t, let's see what SEND can do:$_
- rem Notice that it doesn't matter where you break lines in the file;
- rem only where the send line break($_) occurs.
- send $_$_ Today's date is $d and the time is $t$_
- send $ and this file is $PCOLORDEM.BAT$_$_$_$_$_
- send $ You can use ANSI.SYS to move the cursor around$_$_$_$_
- pause
- send $e[H For example to the top of the screen!$_$_ Now we're ready for
- send $ colors.$_$_$_
- pause
- send $e[44m$e[2J$_$_$_$_$_$_
- send What color do you like on blue?$_
- send $e[31mred? $e[32mgreen?
- send $e[33m yellow? $e[30mblack? $e[35mmagenta? $e[36mcyan?$_$_
- send $_$e[1mor maybe you like the above colors in their "intense" version$_
- send $e[31mred? $e[32mgreen?
- send $e[33m yellow? $e[30mblack? $e[35mmagenta? $e[36mcyan$_$_$_$e[1;33m
- send $ You can produce some really terrible combinations$_$_$_$_$_
- pause
- send $e[42m$e[2J$_$_$_$_$_$_$e[35m AWFUL, isn't it...$_$_$_
- send $ but it can get worse!$_$_$_
- pause
- send $e[5m$_$_ Can't it!$e[0m$_$_$_
- pause
- send $e[1;33;44m$e[2J$_$_$_$_$_$_ My favorite is yellow on blue
- send $e[36m$_$_ but some prefer cyan$e[33m$_$_$_$_
- send $ We'll leave you with a neat PROMPT, which doesn't require
- send $_ SEND. If you don't like it, you can recover the default PROMPT
- send $_ by typing:
- send $_ prompt=
- send $_ at the DOS prompt or, even better, at least use the PROMPT
- send $_ prompt=$$p$$g
- rem Notice the use of the double $ to get a single $ displayed
- send $_$_ If things look really strange, you probably ran out of
- send $_ environment space and you'll certainly need to use one of the
- send $_ above PROMPT commands.
- send $_ If you like the prompt that results, copy the next to
- send $_ last line of this batch file to your autoexec.bat file.$_$_$_
- pause
- prompt=$e[s$e[H$e[1;33;45m$e[K$e[5C$d$e[1;68H$t$h$h$h$h$h$h$_$e[1;37;41m$e[K$e[30C$p$e[u$e[35;44m$g$e[1;33;44m
- send $e[2J^M^J
-