Date: Sun, 13 Aug 1995 12:40:00 -0700 From: J Wunsch <j@uriah.heep.sax.de> To: freebsd-bugs Subject: Re: bin/680: tip & termios problem Message-ID: <199508131940.MAA00797@freefall.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/680; it has been noted by GNATS. From: J Wunsch <j@uriah.heep.sax.de> 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. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508131940.MAA00797>