Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TCXL Database - appendix c - window output escape codes http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                  Appendix C - Window Output Escape Codes

                Escape
                Code     Function
                ------   --------
                +........increase text attribute
                -........decrease text attribute
                Ax.......set text attribute to (x)
                Fx.......set foreground text attribute to (x)
                Bx.......set background text attribute to (x)
                I........toggle intensity
                L........toggle blink
                X........reverse text attribute
                Rx.......set window row coordinate to (x)
                Cx.......set window column coordinate to (x)
                Ex.......erase (x):
                      W....entire window, home cursor
                      L....to end-of-line
                      S....to end-of-window
                Dxy......display (x) character (y) times

Window output  Escape codes  are only  available in  the window  TTY output
string functions.   Valid  functions are  the  entire  Wput..()  series  of
functions, incuding  Wputs(), Wputf(),  etc.   Also, the  text inside  help
files can  contain Escape  codes (excluding  cross-reference items).    The
Escape code parameters MUST be character (byte) size.  Parameters should be
input as  binary.   For example,  5 would be '\005'.  If you are using them
from inside  a Wprintf()  format  string,  you  can  use  the  '%c'  format
specifier to supply the parameter from the list of variables.

Example:        Wputf("\033A%cNormal \033IBright\033I \033LBlink\033L"
                " \033XReverse\033X\n",CYAN|_BLUE);

                Wputf("\033R%c\033C%cRow %d, Col %d\n",3,5,3,5);

                Wputs("\033DA\014 = 'A' 12 times\n");

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson