aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-07-21 22:52:01 +0000
committerBruce Evans <bde@FreeBSD.org>1995-07-21 22:52:01 +0000
commit2ce42987d3ee48eeab510a217bfbdd94847bd649 (patch)
treee4be4e1778a8e58f2a9891e880360c12d7ebaa9a /sys/kern/tty.c
parent6644e3061778df73fef0d3a11b9c11e11576fb66 (diff)
downloadsrc-2ce42987d3ee48eeab510a217bfbdd94847bd649.tar.gz
src-2ce42987d3ee48eeab510a217bfbdd94847bd649.zip
Notes
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);
}
/*