working file printing

This commit is contained in:
nova
2025-02-26 14:01:23 +01:00
parent bac8f5e564
commit 56bc1e4314
4 changed files with 99 additions and 30 deletions

7
main.c
View File

@ -1,4 +1,6 @@
#include <curses.h>
#include <pthread.h>
#include <unistd.h>
#include "window.h"
unsigned int terminal_height;
@ -14,9 +16,14 @@ int main() {
WINDOW *win_r = newwin(terminal_height, terminal_width/3, terminal_height, ((terminal_width/3)*2));
while((ch = wgetch(win_m)) != 'q'){
getmaxyx(stdscr, terminal_height, terminal_width);
pthread_t main_window_thread;
pthread_t left_window_thread;
pthread_t right_window_thread;
window_left(win_l,0,0);
window_main(win_m,0,(terminal_width/3));
window_right(win_r,0,((terminal_width/3)*2));
wmove(stdscr,0,0);
}