T_XTERM.H

LIB3/OBJ/HANDLERS/TERM_TYP/T_XTERM.H · 1.1 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_XTERM "xterm":\
              ([ "RESET" : ESC(">")+ESC("[1;3;4;5;6l")+ESC("[?7h")+ESC("[m"),\
                 "BOLD" : ESC("[7m"),\
                 "FLASH" : "",\
                 "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(34),\
                 "WHITE" : ANSI(38),\
                 "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" : "",\
                 "WINDOW" : "\n",\
                 "INITTERM" : "",\
                 "ENDTERM" : "", ])

Site Stats

Snippets: 1791
Codebases: 571