Fix LTO build
[platform/upstream/expect.git] / exp_tty.h
1 /* exp_tty.h - tty support definitions
2
3 Design and implementation of this program was paid for by U.S. tax
4 dollars.  Therefore it is public domain.  However, the author and NIST
5 would appreciate credit if this program or parts of it are used.
6 */
7
8 #ifndef __EXP_TTY_H__
9 #define __EXP_TTY_H__
10
11 #include "expect_cf.h"
12
13 extern int exp_dev_tty;
14 extern int exp_ioctled_devtty;
15 extern int exp_stdin_is_tty;
16 extern int exp_stdout_is_tty;
17
18 void exp_tty_raw(int set);
19 void exp_tty_echo(int set);
20 void exp_tty_break(Tcl_Interp *interp, int fd);
21 int exp_tty_raw_noecho(Tcl_Interp *interp, exp_tty *tty_old, int *was_raw, int *was_echo);
22 int exp_israw(void);
23 int exp_isecho(void);
24
25 void exp_tty_set(Tcl_Interp *interp, exp_tty *tty, int raw, int echo);
26 int exp_tty_set_simple(exp_tty *tty);
27 int exp_tty_get_simple(exp_tty *tty);
28
29 #endif  /* __EXP_TTY_H__ */