AUTO RESIZING NOW WORKS WELL

This commit is contained in:
Emile Clark-Boman 2025-09-12 01:53:20 +10:00
parent 6cc80f32a3
commit 2ad6e4e104
3 changed files with 29 additions and 54 deletions

View file

@ -4,20 +4,8 @@
#include <ncursesw/ncurses.h>
// #include "child.h"
#include "curse.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);
@ -34,10 +22,12 @@ int main(int argc, char **argv) {
wrefresh(tree->root->child[0]->win);
wrefresh(tree->root->child[1]->win);
// wbkgd(tree->root->win, COLOR_PAIR(1));
// wrefresh(tree->root->win);
while (1) {
ct_update(tree);
// refresh();
// usleep(100000);
usleep(100000);
}
destroy_tree(tree);