home *** CD-ROM | disk | FTP | other *** search
-
- function color(control: anystring): longstring;
- {form an ansi color command}
-
- procedure load_color_constants(name: string);
- {load a new set of color constants}
-
-
- procedure position(x,y: byte);
- {position cursor}
-
- procedure clear_screen;
- {easee screen in current color}
-
- procedure clear_eol;
- {clear to end of line}
-
-
- {color selection macros}
- function RED: longstring;
- function GREEN: longstring;
- function YELLOW: longstring;
- function BLUE: longstring;
- function MAGENTA: longstring;
- function CYAN: longstring;
- function WHITE: longstring;
- function GRAY: longstring;
- function GREY: longstring;
-
-
- {color selection constants}
- type
- color_string = string[10];
-
-
- {default colors}
- const
- ansi_RED: color_string = '1;31';
- ansi_GREEN: color_string = '1;32';
- ansi_YELLOW: color_string = '1;33';
- ansi_BLUE: color_string = '1;34';
- ansi_MAGENTA: color_string = '1;35';
- ansi_CYAN: color_string = '1;36';
- ansi_WHITE: color_string = '1;37';
- ansi_GRAY: color_string = '0;37';
-
- var
- graphics: boolean; {is graphics mode active?}
-
-