2025-09-24 15:46:56 +10:00
|
|
|
#ifndef _CURSETREE_TERM_H
|
|
|
|
|
#define _CURSETREE_TERM_H
|
|
|
|
|
|
|
|
|
|
#include "termios.h"
|
|
|
|
|
|
|
|
|
|
struct ct_term {
|
|
|
|
|
int fd;
|
|
|
|
|
unsigned short cols;
|
|
|
|
|
unsigned short rows;
|
|
|
|
|
|
|
|
|
|
struct termios termios0;
|
|
|
|
|
struct termios termios;
|
|
|
|
|
};
|
|
|
|
|
|
2025-09-24 16:56:09 +10:00
|
|
|
int stashterm(const struct ct_term **const term);
|
|
|
|
|
void resetterm(struct ct_term *const term);
|
2025-09-24 15:46:56 +10:00
|
|
|
int termsize(struct ct_term *const term);
|
|
|
|
|
|
|
|
|
|
#endif /* _CURSETREE_TERM_H */
|