cursetree/src/term.h

22 lines
371 B
C
Raw Normal View History

#ifndef _CURSETREE_TERM_H
#define _CURSETREE_TERM_H
2025-09-27 20:46:05 +10:00
#include <termios.h>
#include "_ct_shared.h"
struct ct_term {
int fd;
2025-09-27 20:46:05 +10:00
pos cols;
pos rows;
struct termios termios0;
struct termios termios;
};
2025-09-27 20:46:05 +10:00
int stashterm(struct ct_term **const term);
2025-09-24 16:56:09 +10:00
void resetterm(struct ct_term *const term);
int termsize(struct ct_term *const term);
#endif /* _CURSETREE_TERM_H */