FENIX_kernel/include/kernel/tty.h

32 lines
552 B
C
Raw Normal View History

2020-12-02 03:00:28 +00:00
#ifndef _KERN_TTY_H
#define _KERN_TTY_H
#include <stddef.h>
2021-01-10 20:42:14 +00:00
#include <stdint.h>
2020-12-02 03:00:28 +00:00
2021-01-06 21:28:36 +00:00
#define BLACK 0
#define BLUE 1
#define GREEN 2
#define CYAN 3
#define RED 4
#define MAGENTA 5
#define BROWN 6
#define GREY 8
#define LGREY 7
#define LBLUE 9
#define LGREEN 10
#define LCYAN 11
#define LRED 12
#define LMAGENTA 13
#define LBROWN 14
#define WHITE 15
2020-12-02 03:00:28 +00:00
void term_init(void);
void term_scroll(void);
void term_putc(char c);
2021-01-10 20:42:14 +00:00
void term_setcolor(uint8_t fg, uint8_t bg);
2020-12-02 03:00:28 +00:00
void term_write(const char* str, size_t size);
void term_writestr(const char* str);
#endif