NAME AnsiColor - Control colors and cursor position on ANSI terminal. DESCRIPTION INITIALIZATION: init Terminal initialization MOVES CURSOR FUNCTIONS: gotoxy(X,Y) Moves cursor to line X, column Y up_lines(N) Moves cursor up N lines down_lines(N) Moves cursor down N lines forward(N) Moves cursor forward N spaces back(N) Moves cursor back N spaces report(X,Y) Reports current cursor line & column save_pos Saves cursor position for recall later restore_pos Return to saved cursor position COLOR CONTROL AND CLEAR FUNCTIONS: clear_screen Clear screen and home cursor. clear_line Clear to end of line. screen_mode(N) Put screen in indicated mode where N is: 0 for 40 x 25 black & white 1 for 40 x 25 color 2 for 80 x 25 b&w 3 for 80 x 25 color 4 for 320 x 200 color graphics 5 for 320 x 200 b & w graphics 6 for 640 x 200 b & w graphics 7 to wrap at end of line reset_color Set Black & White color. set_color(attr,fg,bg) Set display attribute and color. Support fg and bg colors: black, red, green, yellow, blue, magenta, syan, white Support attributes: normal, bold, underline, blink, reverse_attr, invisible EXAMPLE use Term::AnsiColor; init; gotoxy(38,12); clear_screen(); set_color(blink,green,yellow); print 'Hello world'; reset_color; gotoxy(0,25); AUTHOR Okunev Igor V. mailto:igor@prv.mts-nn.ru http://www.mts-nn.ru/~gosha REVISION $Id: Read_me.txt,v 1.2 2002/09/29 22:08:05 gosha Exp $