summaryrefslogtreecommitdiff
path: root/main.c
blob: bb2ea1f8887f1d706c97b38f76fee3cc2f939ed9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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);

    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);

    term_cleanup();
}