aboutsummaryrefslogtreecommitdiff
path: root/bin/ksh/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/tty.h')
-rw-r--r--bin/ksh/tty.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/ksh/tty.h b/bin/ksh/tty.h
new file mode 100644
index 0000000..29c6e8f
--- /dev/null
+++ b/bin/ksh/tty.h
@@ -0,0 +1,21 @@
+/* $OpenBSD: tty.h,v 1.6 2015/09/25 11:58:14 nicm Exp $ */
+
+/*
+ tty.h -- centralized definitions for a variety of terminal interfaces
+
+ created by DPK, Oct. 1986
+
+ Rearranged to work with autoconf, added TTY_state, get_tty/set_tty
+ Michael Rendell, May '94
+
+ last edit: 30-Jul-1987 D A Gwyn
+*/
+
+#include <termios.h>
+
+extern int tty_fd; /* dup'd tty file descriptor */
+extern int tty_devtty; /* true if tty_fd is from /dev/tty */
+extern struct termios tty_state; /* saved tty state */
+
+extern void tty_init(int);
+extern void tty_close(void);