Hello, world! in linear framebuffer
This commit is contained in:
22
src/term.h
Normal file
22
src/term.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef TERM_H
|
||||
#define TERM_H
|
||||
|
||||
int term_init();
|
||||
void kputs(const char* str);
|
||||
|
||||
enum TermColors
|
||||
{
|
||||
BLACK = 0x000000,
|
||||
WHITE = 0xffffff
|
||||
};
|
||||
|
||||
#define PSF1_FONT_MAGIC 0x0436
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint16_t magic;
|
||||
uint8_t fontMode;
|
||||
uint8_t characterSize; // height
|
||||
} PSF1_Header;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user