mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
Helper functions for setting TTY in raw and cooked mode
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
522276b80d
commit
b1bee31d61
2 files changed
+68
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user