The RSXNT.DLL library contains code to emulate VT100/ANSI calls. This code allows to use programs like INFO.EXE without ANSI.SYS drivers (WinNT does not contain this driver). The program INFO.EXE also works with console windows greater than 80x25 characters.
To enable the emulation, you must use the RSXNTOPT program.
Sample code that uses ANSI calls:
void ansi_out() { printf("\033[1;36m"); // set colours printf("Hello World"); // print printf("\033[0m"); // reset colors }
RSXNT.DLL supports the following ANSI.SYS strings:
ESC[nA cursor up ESC[nB cursor down ESC[nC cursor right ESC[nD cursor left ESC[x;yf move cursor to x,y ESC[x;yH move cursor to x,y ESC[6n cursor to keyboard buffer ESC[s save cursor ESC[u restore cursor ESC[nJ erase screen ; n = (0,1,2) ESC[nK erase lines ; n = (0,1,2) ESC[7l break lines (begin termcap) ESC[7h don't break lines (end termcap)
ESC[x;ym set colors (0,1,7,30-37,30-47)