aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 07624d38a351..8efe14b3ba14 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.53 1995/07/21 17:30:12 bde Exp $
+ * $Id: tty.c,v 1.54 1995/07/21 20:52:38 bde Exp $
*/
/*-
@@ -1157,11 +1157,22 @@ ttyflush(tp, rw)
* Copy in the default termios characters.
*/
void
+termioschars(t)
+ struct termios *t;
+{
+
+ bcopy(ttydefchars, t->c_cc, sizeof t->c_cc);
+}
+
+/*
+ * Old interface.
+ */
+void
ttychars(tp)
struct tty *tp;
{
- bcopy(ttydefchars, tp->t_cc, sizeof(ttydefchars));
+ termioschars(&tp->t_termios);
}
/*