finish bulk of tree.* implementation
This commit is contained in:
parent
669f620a6a
commit
8c4f288a97
4 changed files with 181 additions and 43 deletions
25
cli/main.c
25
cli/main.c
|
|
@ -2,7 +2,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "child.h"
|
||||
#include <ncursesw/ncurses.h>
|
||||
|
||||
// #include "child.h"
|
||||
#include "tree.h"
|
||||
|
||||
// struct d_window {
|
||||
// int ptmx; // fd
|
||||
|
|
@ -15,7 +18,23 @@
|
|||
// }
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
struct d_child child;
|
||||
spawnchild(&child);
|
||||
// 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue