diff options
| author | Tanner Robison <[email protected]> | 2026-07-26 11:07:46 -0700 |
|---|---|---|
| committer | Tanner Robison <[email protected]> | 2026-07-26 11:07:46 -0700 |
| commit | 18d3f45424e89dab81331bf2048a6a1e6a397f94 (patch) | |
| tree | 7aeb98ac6b8fcf3d4d9b591eb27f560dfbd1da41 /mandlebrot_set.c | |
| parent | 91649830491cf8c3c34f4fe43d9572b5608a2cb6 (diff) | |
add makefile
Diffstat (limited to 'mandlebrot_set.c')
| -rw-r--r-- | mandlebrot_set.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mandlebrot_set.c b/mandlebrot_set.c index e1311d4..50bb453 100644 --- a/mandlebrot_set.c +++ b/mandlebrot_set.c @@ -1,2 +1,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; +} |
