mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* extended print and syslog with color support needs linux or atleast windows11 * added pol.cfg setting to disable colored output * added docs
21 lines
456 B
Text
21 lines
456 B
Text
//xterm text color constants for print and syslog
|
|
const CONSOLE_COLOR_RED:="\x1b[31m";
|
|
const CONSOLE_COLOR_GREEN:="\x1b[32m";
|
|
const CONSOLE_COLOR_YELLOW:="\x1b[33m";
|
|
const CONSOLE_COLOR_BLUE:="\x1b[34m";
|
|
const CONSOLE_COLOR_MAGENTA:="\x1b[35m";
|
|
const CONSOLE_COLOR_CYAN:="\x1b[36m";
|
|
|
|
|
|
Print( anything, console_color:="" );
|
|
|
|
// below this point not yet implemented
|
|
//input();
|
|
//inkey();
|
|
|
|
//newline();
|
|
|
|
//redirectin( filename );
|
|
//redirectout( filename );
|
|
|
|
|