From owner-freebsd-bugs Sun Aug 13 12:40:01 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id MAA00804 for bugs-outgoing; Sun, 13 Aug 1995 12:40:01 -0700 Received: (from gnats@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id MAA00797 ; Sun, 13 Aug 1995 12:40:00 -0700 Date: Sun, 13 Aug 1995 12:40:00 -0700 Message-Id: <199508131940.MAA00797@freefall.FreeBSD.org> To: freebsd-bugs Cc: From: J Wunsch Subject: Re: bin/680: tip & termios problem Reply-To: J Wunsch Sender: bugs-owner@FreeBSD.org Precedence: bulk The following reply was made to PR bin/680; it has been noted by GNATS. From: J Wunsch To: kelly@fsl.noaa.gov Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/680: tip & termios problem Date: Sun, 13 Aug 1995 19:12:32 +0200 (MET DST) As kelly@fsl.noaa.gov wrote: > > Curiously enough, just clearing OPOST fixes the problem. > > > *** tip.c.orig Fri Mar 31 04:47:30 1995 > --- tip.c Sun Aug 13 08:21:30 1995 > *************** > *** 219,227 **** > --- 219,229 ---- > #ifndef _POSIX_SOURCE > ctermios.c_iflag = (IMAXBEL|IXANY|ISTRIP|IXON|BRKINT); > ctermios.c_lflag = (PENDIN|IEXTEN|ISIG|ECHOCTL|ECHOE|ECHOKE); > + ctermios.c_oflag &= ~OPOST; > #else > ctermios.c_iflag = (ISTRIP|IXON|BRKINT); > ctermios.c_lflag = (PENDIN|IEXTEN|ISIG|ECHOE); > + ctermios.c_oflag &= ~OPOST; > #endif > ctermios.c_cflag = (CLOCAL|HUPCL|CREAD|CS8); > ctermios.c_cc[VINTR] = ctermios.c_cc[VQUIT] = -1; Since the remaining c_fooflags are also set absolutely, it's perhaps best to set the oflag straight to 0 (the ONLCR does not have any effect if OPOST is cleared) instead. Of course, RAW mode is supposed to not perform output postprocessing. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)