1/* exp_tty.h - tty support definitions
2
3Design and implementation of this program was paid for by U.S. tax
4dollars.  Therefore it is public domain.  However, the author and NIST
5would 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
13extern int exp_dev_tty;
14extern int exp_ioctled_devtty;
15extern int exp_stdin_is_tty;
16extern int exp_stdout_is_tty;
17
18void exp_tty_raw(int set);
19void exp_tty_echo(int set);
20void exp_tty_break(Tcl_Interp *interp, int fd);
21int exp_tty_raw_noecho(Tcl_Interp *interp, exp_tty *tty_old, int *was_raw, int *was_echo);
22int exp_israw(void);
23int exp_isecho(void);
24
25void exp_tty_set(Tcl_Interp *interp, exp_tty *tty, int raw, int echo);
26int exp_tty_set_simple(exp_tty *tty);
27int exp_tty_get_simple(exp_tty *tty);
28
29#endif	/* __EXP_TTY_H__ */
30