commit cursetree

This commit is contained in:
Emile Clark-Boman 2025-09-27 20:46:05 +10:00
parent 7f4f9941de
commit 9b0e752b8a
8 changed files with 95 additions and 37 deletions

View file

@ -1,18 +1,20 @@
#ifndef _CURSETREE_TERM_H
#define _CURSETREE_TERM_H
#include "termios.h"
#include <termios.h>
#include "_ct_shared.h"
struct ct_term {
int fd;
unsigned short cols;
unsigned short rows;
pos cols;
pos rows;
struct termios termios0;
struct termios termios;
};
int stashterm(const struct ct_term **const term);
int stashterm(struct ct_term **const term);
void resetterm(struct ct_term *const term);
int termsize(struct ct_term *const term);