HariboteOS/day27/app/winhello.c
2021-05-31 23:12:40 +08:00

18 lines
209 B
C

#include "api.h"
char buf[150 * 50];
int main(void) {
int win = api_open_win(buf, 150, 50, -1, "hello");
for (;;) {
if (api_get_key(1) == 0x0a) {
break;
}
}
api_end();
return 0;
}