summaryrefslogtreecommitdiff
path: root/exp_tty.h
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-04 17:21:04 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-04 17:21:04 -0800
commite0b431a48cc3ac5d3ec32f06eddd9708ad655fa2 (patch)
treece4c73521220fbb751c2be6a42e85ff6a6cbff97 /exp_tty.h
downloadexpect-e0b431a48cc3ac5d3ec32f06eddd9708ad655fa2.tar.gz
expect-e0b431a48cc3ac5d3ec32f06eddd9708ad655fa2.tar.bz2
expect-e0b431a48cc3ac5d3ec32f06eddd9708ad655fa2.zip
Imported Upstream version 5.45upstream/5.45
Diffstat (limited to 'exp_tty.h')
-rw-r--r--exp_tty.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/exp_tty.h b/exp_tty.h
new file mode 100644
index 0000000..3013838
--- /dev/null
+++ b/exp_tty.h
@@ -0,0 +1,29 @@
+/* exp_tty.h - tty support definitions
+
+Design and implementation of this program was paid for by U.S. tax
+dollars. Therefore it is public domain. However, the author and NIST
+would appreciate credit if this program or parts of it are used.
+*/
+
+#ifndef __EXP_TTY_H__
+#define __EXP_TTY_H__
+
+#include "expect_cf.h"
+
+extern int exp_dev_tty;
+extern int exp_ioctled_devtty;
+extern int exp_stdin_is_tty;
+extern int exp_stdout_is_tty;
+
+void exp_tty_raw(int set);
+void exp_tty_echo(int set);
+void exp_tty_break(Tcl_Interp *interp, int fd);
+int exp_tty_raw_noecho(Tcl_Interp *interp, exp_tty *tty_old, int *was_raw, int *was_echo);
+int exp_israw(void);
+int exp_isecho(void);
+
+void exp_tty_set(Tcl_Interp *interp, exp_tty *tty, int raw, int echo);
+int exp_tty_set_simple(exp_tty *tty);
+int exp_tty_get_simple(exp_tty *tty);
+
+#endif /* __EXP_TTY_H__ */