3 #include "host_intern.h"
7 int __declspec(dllexport
) __aros
core_putc(char c
)
11 WriteConsole(conout
, &c
, 1, &cnt
, NULL
);
15 int __declspec(dllexport
) __aros
core_getc(void)
22 if (!PeekConsoleInput(conin
, &input
, 1, &cnt
))
27 if (!ReadConsoleInput(conin
, &input
, 1, &cnt
))
29 /* Control keys also generate events with zero character, so we ignore them */
30 } while ((input
.EventType
!= KEY_EVENT
) || (!input
.Event
.KeyEvent
.bKeyDown
) ||
31 (!input
.Event
.KeyEvent
.uChar
.AsciiChar
));
33 return input
.Event
.KeyEvent
.uChar
.AsciiChar
;
36 void __declspec(dllexport
) __aros
core_alert(const char *text
)
38 MessageBox(NULL
, text
, "AROS guru meditation", MB_ICONERROR
|MB_SETFOREGROUND
);