summaryrefslogtreecommitdiff
path: root/src/user/app/vterm/draw.c
diff options
context:
space:
mode:
authordzwdz2023-08-14 18:51:07 +0200
committerdzwdz2023-08-14 18:51:07 +0200
commit642b5fb0007b64c77d186fcb018d571152ee1d47 (patch)
tree1c466461f3602d306be309a053edae558ef2568e /src/user/app/vterm/draw.c
parent8050069c57b729c18c19b1a03ab6e4bf63b4735e (diff)
reorganization: first steps
Diffstat (limited to 'src/user/app/vterm/draw.c')
-rw-r--r--src/user/app/vterm/draw.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/user/app/vterm/draw.c b/src/user/app/vterm/draw.c
deleted file mode 100644
index ee36a0f..0000000
--- a/src/user/app/vterm/draw.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include "vterm.h"
-#include <camellia/execbuf.h>
-#include <camellia/syscalls.h>
-#include <string.h>
-
-struct framebuf fb;
-struct rect dirty;
-
-void scroll(void) {
- size_t row_len = fb.pitch * font.h;
- memmove(fb.b, fb.b + row_len, fb.len - row_len);
- memset(fb.b + fb.len - row_len, 0, row_len);
- cursor.y--;
-
- dirty.x1 = 0; dirty.y1 = 0;
- dirty.x2 = ~0; dirty.y2 = ~0;
-}