Tcl for Embedded Applications

Home

Docs

Project Download Participate Tcl Conference Proc Place SourceForge Logo
Open Source Thanks Acterna

TinyTcl - DOS Video Functions

video normal -- select "normal" video brightness

video dim -- select "dim" video brightness

video bright -- select "bright" video brightness

video write data -- write data given the current video attributes for color, intensity, etc. Data can contain multiple lines. However they must currently be separated by carriage-return, linefeed (\r\n), not just linefeed.

video goto x y -- set the cursor to a specific location. 1,1 is the top left corner.

video bgcolor n -- set the background color to an integer between 0 and 7

Video Background Colors
0 black
1 blue
2 green
3 cyan
4 red
5 magenta
6 brown
7 lightgray

video color n -- set the foreground color to an integer between 0 and 15

Video Foreground Colors
0 black
1 blue
2 green
3 cyan
4 red
5 magenta
6 brown
7 light gray
8 dark gray
9 light blue
10 light green
11 light cyan
12 light red
13 light magenta
14 yellow
15 white

video color n blink -- set foreground color and make it blink.

Note that light colors (8-15) may not be defined for certain video hardware and, if not, the card will fall back to the corresponding 0-7 color.

video clear -- Clear the screen, same as cls.

video direct -- get or set whether or not we write directly to video or go through the BIOS.

See also DOS interface commands and BIOS interface commands.