polserver/pol-core/support/scripts/basicio.em
turleypol 31780b070e
extended print and syslog with color support (#544)
* extended print and syslog with color support
needs linux or atleast windows11

* added pol.cfg setting to disable colored output

* added docs
2023-10-18 15:18:06 +02:00

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 );