diff options
Diffstat (limited to 'lib/tctl/tctl.h')
| -rw-r--r-- | lib/tctl/tctl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/tctl/tctl.h b/lib/tctl/tctl.h index bdcdb66..d16c9eb 100644 --- a/lib/tctl/tctl.h +++ b/lib/tctl/tctl.h @@ -14,13 +14,16 @@ typedef struct { unsigned int c_cflag; unsigned int c_lflag; unsigned char c_line; - unsigned char c_cc[32]; - unsigned int c_ispeed; - unsigned int c_ospeed; + unsigned char c_cc[19]; } termios_t; window_size_t tctl_get_window_size(); void tctl_set_window_size(window_size_t size); int isatty(); +int tcgetattr(int fd, termios_t *termios); +void tcsetattr(int fd, termios_t *termios); +void setcanonical(termios_t *term, int is_canonical); +void setecho(termios_t *term, int is_echo); +void flush(unsigned int fd); #endif |