T_ANSI_S.H

LIB3/OBJ/HANDLERS/TERM_TYP/T_ANSI_S.H · 1.5 KB

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

/*
#define ANSI(p) sprintf("%c["+(p)+"m", 27)
#define ESC(p) sprintf("%c"+(p), 27)
*/
 
 
#define T_ANSI_STATUS "ansi-status":\
                      ([ "RESET" : ANSI("0;37;40"),\
                         "BOLD" : ANSI(1),\
                         "FLASH" : ANSI(5),\
                         "BLACK" : ANSI(30),\
                         "RED" : ANSI(31),\
                         "GREEN" : ANSI(32),\
                         "ORANGE" : ANSI(33),\
                         "YELLOW" : ANSI(33),\
                         "BLUE" : ANSI(34),\
                         "CYAN" : ANSI(36),\
                         "MAGENTA" : ANSI(35),\
                         "BLACK" : ANSI(30),\
                         "WHITE" : ANSI(37),\
                         "B_RED" : ANSI(41),\
                         "B_GREEN" : ANSI(42),\
                         "B_ORANGE" : ANSI(43),\
                         "B_YELLOW" : ANSI(43),\
                         "B_BLUE" : ANSI(44),\
                         "B_CYAN" : ANSI(46),\
                         "B_BLACK" : ANSI(40),\
                         "B_WHITE" : ANSI(47),\
                         "B_MAGENTA" : ANSI(45),\
                         "STATUS" : ESC( "[s" )+ESC( "[24;24r" )+\
                                    ESC( "[25;1H" )+ESC( "[K" ),\
                         "WINDOW" : ESC( "[1;23r" )+ESC( "[u" ),\
                         "INITTERM" : ESC( "[26;82H" )+"\n\n"+ESC( "[1;23r" )+\
                                      ESC( "[23;1H" )+ESC( "[s" ),\
                         "ENDTERM" : ESC( "[0r" )+ESC( "[25;81H" )+"\n", ])
 

Site Stats

Snippets: 1791
Codebases: 571