summaryrefslogtreecommitdiff
path: root/mandlebrot_set.c
blob: 50bb4535c9a2413807992f34cd5d80472868489d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <stddef.h>
#include <curses.h>
#include <unistd.h>

int get_next_frame();

int main() {
    initscr();
    noecho(); //dont echo user input
    cbreak(); //dont buffer user input

    start_color();

    int max_x;
    int max_y;
    getmaxyx(stdscr, max_y, max_x);

    int y = max_y * 0.5;
    int x = (max_x * 0.5) - 6;

    mvwprintw(stdscr, y, x, "Hello world");
    
    refresh();

    attroff(1);
    attroff(2);
    getch();
    endwin();

    return 0;
}