73bool MonoClass::Enabled =
false;
101 Handle(INVALID_HANDLE_VALUE)
104 Handle = CreateFile(
"\\\\.\\MONO", GENERIC_READ|GENERIC_WRITE, 0,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
NULL);
130 if (Handle != INVALID_HANDLE_VALUE) {
132 Handle = INVALID_HANDLE_VALUE;
161 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
162 unsigned long retval;
191 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
195 unsigned long retval;
228 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
232 unsigned long retval;
262 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
263 unsigned long retval;
295 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
296 unsigned long retval;
306 fillcontrol.A = attrib;
334 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
335 unsigned long retval;
371 if ( !Enabled || (Handle == INVALID_HANDLE_VALUE) )
return;
374 vsprintf(buffer, text, va);
375 buffer[
sizeof(buffer)-1] =
'\0';
413 if ( !Enabled || (Handle == INVALID_HANDLE_VALUE) )
return;
417 buffer[
sizeof(buffer)-1] =
'\0';
444 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
445 unsigned long retval;
446 WriteFile(Handle, ptr, strlen(ptr), &retval,
NULL);
470 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
471 unsigned long retval;
501 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
502 unsigned long retval;
580 if ( Enabled && (Handle != INVALID_HANDLE_VALUE) ) {
581 unsigned long retval;
#define IOCTL_MONO_SET_WINDOW
#define IOCTL_MONO_BRING_TO_TOP
#define IOCTL_MONO_SCROLL
#define IOCTL_MONO_CLEAR_SCREEN
#define IOCTL_MONO_SET_ATTRIBUTE
#define IOCTL_MONO_FILL_ATTRIB
#define IOCTL_MONO_SET_CURSOR
static MonoClass * Current
void Print(char const *text)
void Sub_Window(int x=0, int y=0, int w=80, int h=25)
void Printf(char const *text,...)
void Set_Cursor(int x, int y)
void Set_Default_Attribute(MonoAttribute attrib)
void Text_Print(char const *text, int x, int y, MonoAttribute attrib=NORMAL)
void Fill_Attrib(int x, int y, int w, int h, MonoAttribute attrib)
char const * Fetch_String(int id)