diff options
author | dzwdz | 2023-08-14 18:51:07 +0200 |
---|---|---|
committer | dzwdz | 2023-08-14 18:51:07 +0200 |
commit | 642b5fb0007b64c77d186fcb018d571152ee1d47 (patch) | |
tree | 1c466461f3602d306be309a053edae558ef2568e /src/user/app/vterm/vterm.h | |
parent | 8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff) |
reorganization: first steps
Diffstat (limited to 'src/user/app/vterm/vterm.h')
-rw-r--r-- | src/user/app/vterm/vterm.h | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/user/app/vterm/vterm.h b/src/user/app/vterm/vterm.h deleted file mode 100644 index 026e71a..0000000 --- a/src/user/app/vterm/vterm.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once -#include <camellia/types.h> -#include <stdint.h> -#include <stdio.h> -#include <draw.h> - -#define eprintf(fmt, ...) fprintf(stderr, "vterm: "fmt"\n" __VA_OPT__(,) __VA_ARGS__) - - -struct psf1 { - uint16_t magic; - uint8_t mode; - uint8_t h; -} __attribute__((packed)); -struct psf2 { - uint32_t magic; - uint32_t version; - uint32_t glyph_offset; - uint32_t flags; - uint32_t glyph_amt; - uint32_t glyph_size; - uint32_t h; - uint32_t w; -} __attribute__((packed)); -extern struct psf2 font; -extern void *font_data; -void font_load(const char *path); -void font_blit(uint32_t glyph, int x, int y); - -extern struct framebuf fb; - -extern struct rect dirty; -void vdirty_mark(uint32_t x, uint32_t y); -void flush(void); -void scroll(void); - -struct point {uint32_t x, y;}; -extern struct point cursor; -void in_char(char c); |