>> Sample Code: \rsxnt\sample\gui\windowed
>> Sample Code: \rsxnt\source\rsxwin32
It is possible to create a text-mode programs that can run in a window instead of a Win32 console. You must link your application with the library RSXIOAPP and rename the main function to rsxio_main(). The rsxioapp programs can use ANSI/VT100 terminal strings.
In this version, there are problems with multibyte character win** versions (kanji).
link command:
gcc -Zwin32 test.o -lrsxioapp
example:
#include <stdio.h> #include <rsxioapp.h> /* style of rsxio window (optional) */ char rsxio_window_title[] = "This is a test of rsxioapp"; int rsxio_window_close = 1; int rsxio_main(int argc, char **argv, char **env) { printf("\033[1;36m"); // set colours printf("Hello World"); // print printf("\033[0m"); // reset colors getchar(); return 0; }