2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
8 #include "host_intern.h"
12 int __declspec(dllexport
) __aros
core_putc(char c
)
16 WriteConsole(conout
, &c
, 1, &cnt
, NULL
);
20 int __declspec(dllexport
) __aros
core_getc(void)
27 if (!PeekConsoleInput(conin
, &input
, 1, &cnt
))
32 if (!ReadConsoleInput(conin
, &input
, 1, &cnt
))
34 /* Control keys also generate events with zero character, so we ignore them */
35 } while ((input
.EventType
!= KEY_EVENT
) || (!input
.Event
.KeyEvent
.bKeyDown
) ||
36 (!input
.Event
.KeyEvent
.uChar
.AsciiChar
));
38 return input
.Event
.KeyEvent
.uChar
.AsciiChar
;
41 void __declspec(dllexport
) __aros
core_alert(const char *text
)
43 MessageBox(NULL
, text
, "AROS guru meditation", MB_ICONERROR
|MB_SETFOREGROUND
);