dorne/cli/main.c

40 lines
760 B
C

#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <ncursesw/ncurses.h>
// #include "child.h"
#include "tree.h"
// struct d_window {
// int ptmx; // fd
// };
// struct d_window new_window() {
// struct d_window w = {
// .ptmx = posix_openpt(O_RDWR | O_NOCTTY),
// };
// }
int main(int argc, char **argv) {
// struct d_child child;
// spawnchild(&child);
struct crs_tree *tree;
init_tree(&tree);
init_pair(1, COLOR_BLACK, COLOR_CYAN);
init_pair(2, COLOR_BLACK, COLOR_RED);
// bifurcate_window_node(&tree->root, AXIS_X, FALSE, 0.5);
// wbkgd(tree->root->child[0]->win, COLOR_PAIR(1));
// wbkgd(tree->root->child[1]->win, COLOR_PAIR(1));
// sleep(3);
destroy_tree(tree);
return EXIT_SUCCESS;
}