HariboteOS/day25/app/winhello2.c
2021-05-26 20:44:33 +08:00

17 lines
459 B
C

int api_open_win(char *buf, int xsize, int ysize, int col_inv, char *title);
void api_putstr_win(int win, int x, int y, int col, int len, char *str);
void api_boxfill_win(int win, int x0, int y0, int x1, int y1, int col);
void api_end(void);
char buf[150 * 50];
int main(void) {
int win = api_open_win(buf, 150, 50, -1, "hello");
api_boxfill_win(win, 8, 36, 141, 43, 3);
api_putstr_win(win, 28, 28, 0, 12, "hello world");
api_end();
return 0;
}