nshell/src/term.h

24 lines
605 B
C
Raw Normal View History

2021-08-31 15:52:53 +02:00
#ifndef UNS_TERM_H
#define UNS_TERM_H
#define UNS_TERM_ROWS 22
#define UNS_TERM_COLS 65
void tgrid_display(void);
int term_writeat(int row, int col, int fg, int bg, const char *s);
2021-09-01 14:24:10 +02:00
void term_scroll_down(void);
2021-09-09 22:09:33 +02:00
2021-09-09 23:43:50 +02:00
// normal print (stdout equivalent)
2021-09-09 22:09:33 +02:00
int term_print(const char *str);
2021-09-08 22:15:46 +02:00
int term_printf(const char *restrict format, ...);
2021-09-01 14:24:10 +02:00
2021-09-09 23:43:50 +02:00
// red print (stderr equivalent)
int term_eprint(const char *str);
int term_eprintf(const char *restrict format, ...);
2021-09-10 23:12:01 +02:00
// trace print (printk equivalent)
int term_kprint(const char *str);
int term_kprintf(const char *restrict format, ...);
2021-08-31 15:52:53 +02:00
#endif // #ifndef UNS_TERM_H