commit cursetree
This commit is contained in:
parent
7f4f9941de
commit
9b0e752b8a
8 changed files with 95 additions and 37 deletions
10
src/term.h
10
src/term.h
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue