20 lines
363 B
C
20 lines
363 B
C
|
|
#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;
|
||
|
|
};
|
||
|
|
|
||
|
|
int getterm(struct ct_term *const term);
|
||
|
|
void endterm(struct ct_term *const term);
|
||
|
|
int termsize(struct ct_term *const term);
|
||
|
|
|
||
|
|
#endif /* _CURSETREE_TERM_H */
|