Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 1996 14:21:45 -0600
From:      Gary Aitken <garya@ics.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: stty -- not
Message-ID:  <31A4C8D9.2648@ics.com>

next in thread | raw e-mail | index | archive | help
I've determined that the right bit to set in printcap for a
tty device to force ONLCR and OPOST is CRMOD: fs:0x10
(The corresponding structure is an sgttyb)

The reason it doesn't work is that the tty
(/dev/ttyd1 in this case) is in raw mode, and attempting to do

	ioctl(pfd, TIOCSETP, (char *)&ttybuf)

succeeds only partially.
The reason is that in ttcompatsetflags (tty_compat.c), if raw
mode is set, all output flags settings are ignored.

Should /dev/ttyd1 normally be in raw mode?
I haven't put it in raw mode intentionally...
There's not a getty or anything running on the line.

Killing the raw mode bit as well (fc#0x20) makes things
work, but I'm wondering if there isn't something more
fundamental which is screwed up.
-- 
Gary Aitken		garya@ics.com		(business)
			garya@dreamchaser.org	(personal)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31A4C8D9.2648>