2025-09-10 01:25:08 +10:00
|
|
|
#include <fcntl.h>
|
2025-09-09 19:43:54 +10:00
|
|
|
#include <stdlib.h>
|
2025-09-10 01:25:08 +10:00
|
|
|
#include <unistd.h>
|
2025-09-09 15:43:54 +10:00
|
|
|
|
2025-09-11 17:41:14 +10:00
|
|
|
#include <ncursesw/ncurses.h>
|
|
|
|
|
|
2025-09-13 10:39:58 +10:00
|
|
|
#include "cursetree.h"
|
2025-09-09 15:43:54 +10:00
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
2025-09-16 16:48:02 +10:00
|
|
|
struct ct_tree *tree;
|
2025-09-12 00:17:48 +10:00
|
|
|
ct_init(&tree);
|
2025-09-11 17:41:14 +10:00
|
|
|
|
2025-09-11 19:27:49 +10:00
|
|
|
init_pair(1, COLOR_CYAN, COLOR_CYAN);
|
|
|
|
|
init_pair(2, COLOR_RED, COLOR_RED);
|
2025-09-11 17:41:14 +10:00
|
|
|
|
2025-09-12 01:53:20 +10:00
|
|
|
// wbkgd(tree->root->win, COLOR_PAIR(1));
|
|
|
|
|
// wrefresh(tree->root->win);
|
|
|
|
|
|
2025-09-13 10:39:58 +10:00
|
|
|
int i = 1;
|
2025-09-16 16:48:02 +10:00
|
|
|
while (1) {
|
2025-09-12 00:17:48 +10:00
|
|
|
ct_update(tree);
|
2025-09-11 19:27:49 +10:00
|
|
|
}
|
2025-09-11 17:41:14 +10:00
|
|
|
|
|
|
|
|
destroy_tree(tree);
|
2025-09-11 19:27:49 +10:00
|
|
|
|
2025-09-09 19:43:54 +10:00
|
|
|
return EXIT_SUCCESS;
|
2025-09-09 15:43:54 +10:00
|
|
|
}
|