summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-06-21 15:01:30 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-06-21 15:01:30 +0300
commitcb49c9bfa880464862b99d9b7a47a927552989d4 (patch)
tree5528753165c97c3b2461f85d045eae34c84ddbb0 /main.c
parent3fed5969034c464e36358fc45a99b57b1f308c11 (diff)
downloadwafflestone-cb49c9bfa880464862b99d9b7a47a927552989d4.tar.xz
Output
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/main.c b/main.c
index 5f5fc8c..bb2ea1f 100644
--- a/main.c
+++ b/main.c
@@ -1,12 +1,20 @@
#include <stdio.h>
#include <unistd.h>
+#include <math.h>
#include "framebuffer.h"
int main(void) {
term_init();
+ fprintf(stderr, "%zux%zu\n", term_width, term_height);
- fprintf(stderr, "Not yet implemented\n");
+ Framebuffer fb = fb_new(term_width, term_height);
+ fb_fill(fb, P_RED);
+ for (int i = 0; i < 10; i ++) {
+ fb.fb[i][i] = P_CYAN;
+ fb_print(fb);
+ usleep(1000000);
+ }
char c;
get_input(c);