diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-17 19:15:25 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-17 19:15:25 +0000 |
commit | 0fc5ad2891dcde17a67b3cfd32af9e90df07245f (patch) | |
tree | e81777ef170c828ca708bb6f92d48aefca3aea6d /sys/kern | |
parent | 24a65aab096e3018a664121896075cf3d5db72e9 (diff) |
Reset output column when outputting \r with ONLCR
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index e00ba6a1bbf..7d089df71a2 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.21 1996/12/16 20:04:54 tholo Exp $ */ +/* $OpenBSD: tty.c,v 1.22 1996/12/17 19:15:24 tholo Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -642,6 +642,7 @@ ttyoutput(c, tp) tp->t_outcc++; if (putc('\r', &tp->t_outq)) return (c); + col = 0; } else if (c == '\r' && ISSET(tp->t_oflag, OCRNL)) c = '\n'; |