Helper functions for setting TTY in raw and cooked mode

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-04-07 10:07:26 +02:00
1 parent 522276b80d
commit b1bee31d61
2 files changed
+68

No files matched your search

+4
View File
@@ -62,8 +62,12 @@ char *sanitize (char *arg, size_t len);
#ifdef HAVE_TERMIOS_H
int ttinit (void);
int ttraw (void);
int ttcooked (void);
#else
#define ttinit() ttcols
#define ttraw() 0
#define ttcooked() 0
#endif
static inline char *strterm(char *str, size_t len)