trios/kernel/term.h

21 lines
451 B
C
Raw Normal View History

2023-04-19 03:44:10 +00:00
#pragma once
#include <stddef.h>
2023-04-21 13:39:35 +00:00
#include <stdarg.h>
2023-04-19 03:44:10 +00:00
#include <stdint.h>
#define TERM_W 80
#define TERM_H 25
void putc(char c);
2023-04-21 13:39:35 +00:00
void puts(const char* s);
void printf(const char* s, ...);
void vprintf(const char* s, va_list args);
2023-04-19 03:44:10 +00:00
void term_clear(void);
void term_setcol(uint8_t new_col);
void term_setpos(size_t new_x, size_t new_y);
uint32_t term_save(void);
void term_load(uint32_t pos);
2023-04-21 13:39:35 +00:00
void term_scroll(ptrdiff_t lines);
void term_flush(void);