From owner-freebsd-hackers Thu May 23 13:22:02 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA15383 for hackers-outgoing; Thu, 23 May 1996 13:22:02 -0700 (PDT) Received: from nightmare.dreamchaser.org ([207.40.47.18]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA15378 for ; Thu, 23 May 1996 13:21:58 -0700 (PDT) Received: from mofo (mofo.dreamchaser.org [206.230.42.91]) by nightmare.dreamchaser.org (8.6.12/8.6.12) with SMTP id OAA01272 for ; Thu, 23 May 1996 14:21:56 -0600 Message-ID: <31A4C8D9.2648@ics.com> Date: Thu, 23 May 1996 14:21:45 -0600 From: Gary Aitken Organization: Integrated Computer Solutions X-Mailer: Mozilla 3.0b3 (X11; I; SunOS 5.4 sun4c) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: stty -- not Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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)