From owner-freebsd-current@FreeBSD.ORG Tue Aug 26 17:53:43 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B60811065680 for ; Tue, 26 Aug 2008 17:53:43 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2A94C8FC0C for ; Tue, 26 Aug 2008 17:53:42 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl76-178.kln.forthnet.gr [77.49.123.178]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m7QHrF0E031905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 26 Aug 2008 20:53:21 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m7QHrF5R044529; Tue, 26 Aug 2008 20:53:15 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m7QHrEgc044508; Tue, 26 Aug 2008 20:53:14 +0300 (EEST) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Ed Schouten In-Reply-To: <20080826160144.GG99951@hoeg.nl> (Ed Schouten's message of "Tue, 26 Aug 2008 18:01:44 +0200") Date: Tue, 26 Aug 2008 20:52:50 +0300 Message-ID: <878wujll3h.fsf@kobe.laptop> References: <87fxot5hoi.fsf@kobe.laptop> <20080826160144.GG99951@hoeg.nl> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m7QHrF0E031905 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.291, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.11, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: FreeBSD Current Subject: Re: Inserting flow-control chars with an mpsafetty kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2008 17:53:43 -0000 On Tue, 26 Aug 2008 18:01:44 +0200, Ed Schouten wrote: > Screen(1) is a fairly moronic written application, which uses packet > mode for no sensible reason at all. If you just comment out TIOCPKT in > /usr/include/sys/ttycom.h and recompile screen(1), your problems are > gone, right? Yep. That fixed it. I just #ifdef'd out the TIOCPKT* stuff: #if 0 #define TIOCPKT _IOW('t', 112, int) /* pty: set/clear packet mode */ #define TIOCPKT_DATA 0x00 /* data packet */ #define TIOCPKT_FLUSHREAD 0x01 /* flush packet */ #define TIOCPKT_FLUSHWRITE 0x02 /* flush packet */ #define TIOCPKT_STOP 0x04 /* stop output */ #define TIOCPKT_START 0x08 /* start output */ #define TIOCPKT_NOSTOP 0x10 /* no more ^S, ^Q */ #define TIOCPKT_DOSTOP 0x20 /* now do ^S ^Q */ #define TIOCPKT_IOCTL 0x40 /* state change of pty driver */ #endif and rebuilt screen. In the following few days I'll be upgrading more ports, so if this change breaks anything I'll report back :)