home *** CD-ROM | disk | FTP | other *** search
-
-
- NAME
- dvid_cls -- clear the display and home cursor
- dvid_say -- display a string at specified position
- dvid_sayr -- dvid_say, returns cursor to starting point
- dvid_char_at -- display character at specified position
- dvid_char_atr -- dvid_char_at, returns cursor to start
-
- SYNOPSIS
- void dvid_cls();
- void dvid_say(row, col, string);
- void dvid_sayr(row, col, string);
- void dvid_char_at(row, col, ch);
- void dvid_char_atr(row, col, char);
- int row, col; position to display
- char *string; string to display
- char ch; character to display
-
-
- DESCRIPTION
- These functions use the direct video access functions.
- dvid_init() must be called prior to using these functions,
- and the functions may fail of the target system is not a
- very close compatible since direct memory writing is being
- used. dvid_char_at() passes only a carriage return, linefeed,
- backspace, tab, and bell control code. All other control codes
- are ignored. dvid_sayr() and dvid_char_atr() read the current
- real cursor position and perform a dvid_move() after writing
- the specified data. Before using these calls, be sure the
- internal cursor position and the screen position are
- equal by doing a dvid_flush() call. dvid_say(), dvid_cls(),
- and dvid_char_at() all perform the dvid_flush() call before
- returning, thereby insuring cursor updating.
-
-
- EXAMPLE
-
- int i;
- dvid_init(); /* initialize the package */
- dvid_cls(); /* clear the screen */
- dvid_say(0, 0, "Hello"); /* write to upper left corner */
- for(i = 0; i < 10; i++) {
- dvid_char_at(i, i+1, i | '0'); /* write a sequence */
- }
- dvid_move(12, 40); /* move to center of screen */
- dvid_flush(); /* physically update screen cursor */
- dvid_sayr(20, 70, "Goodby"); /* write into lower corner */
- dvid_putc('!'); /* this char should be at 12, 40 */
-
-
-
- This function is found in SMTCx.LIB for the Turbo-C Compiler