summaryrefslogtreecommitdiff
path: root/userland/terminal/term.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-27 18:59:49 +0200
committerAnton Kling <anton@kling.gg>2024-06-27 19:07:50 +0200
commitd315a82dbed1fd288702ebbcb869c744476433a8 (patch)
treeb58ec3831daa0abf0dd2dd5dd4395e53565bd1c7 /userland/terminal/term.c
parent556d1e44fef369a7200cc045f337ac3db2f9eab5 (diff)
stuff
Diffstat (limited to 'userland/terminal/term.c')
-rw-r--r--userland/terminal/term.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/userland/terminal/term.c b/userland/terminal/term.c
index ced3a60..246474f 100644
--- a/userland/terminal/term.c
+++ b/userland/terminal/term.c
@@ -228,12 +228,15 @@ void handle_escape_codes_or_print(char *buffer, int len) {
}
void terminal_resize(uint32_t sx, uint32_t sy) {
- GUI_Resize(global_w, sx, sy);
+ assert(GUI_BufferResize(global_w, sx, sy));
for (int y = 0; y < sy; y += 8) {
- for (int x = 0; x < sx; x += 8) {
+ int x = 0;
+ for (; x < sx; x += 8) {
GUI_DrawFont(global_w, x, y, terminal_char_buffer[y / 8][x / 8]);
}
+ GUI_DrawLine(global_w, x, y, sx, y, 0xFF00FF);
}
+ assert(GUI_SendResize(global_w, sx, sy));
}
void run() {