From owner-freebsd-commit Tue Mar 28 07:25:41 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA14869 for commit-outgoing; Tue, 28 Mar 1995 07:25:41 -0800 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA14818 for cvs-sys-outgoing; Tue, 28 Mar 1995 07:25:29 -0800 Received: (from ache@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA14771; Tue, 28 Mar 1995 07:25:20 -0800 Date: Tue, 28 Mar 1995 07:25:20 -0800 From: "Andrey A. Chernov" Message-Id: <199503281525.HAA14771@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/kern tty.c Sender: commit-owner@FreeBSD.org Precedence: bulk ache 95/03/28 07:25:18 Modified: sys/kern tty.c Log: ttyinput() fixes: 1) Preserve old buffer contents when input buffer overflows. Old code clear buffer and rewrite it again, if !MAXBEL (for MAXBEL it does right thing :-). F.e. if you type too long string, last chars passed, not first ones as expected. Moreover, it flush output queue too in this case without any needs. 2) Don't do IXOFF, if IGNCR and c==\r, ignore completely. 3) If PARMRK is active and !ISTRIP and char == 0377 put yet one 0377 to distinguish it from parity mark sequence. POSIX standard (thanx Bruce). Reviewed by: Submitted by: Obtained from: CVS: