toaruos/boot/text.h

18 lines
440 B
C
Raw Normal View History

2018-03-06 18:18:53 +09:00
#pragma once
2021-06-14 11:11:37 +09:00
extern int txt_debug, x, y, attr;
2018-03-06 23:09:06 +09:00
2021-06-14 11:11:37 +09:00
void move_cursor(int _x, int _y);
void set_attr(int _attr);
void print_(char * str);
void print_hex_(unsigned int value);
2021-10-19 20:29:44 +09:00
void print_int_(unsigned int value);
2021-06-14 11:11:37 +09:00
void clear_();
2018-03-06 18:18:53 +09:00
2021-06-14 11:11:37 +09:00
void print_banner(char * str);
2018-03-06 23:09:06 +09:00
2018-07-06 23:53:14 +09:00
#define print(s) do {if (txt_debug) {print_(s);}} while(0)
#define clear() do {if (txt_debug) {clear_();}} while(0)
#define print_hex(d) do {if (txt_debug) {print_hex_(d);}} while(0)
2018-03-06 18:18:53 +09:00