Re: Inserting flow-control chars with an mpsafetty kernel

From: Giorgos Keramidas <keramida_at_freebsd.org>
Date: Tue, 26 Aug 2008 20:52:50 +0300
On Tue, 26 Aug 2008 18:01:44 +0200, Ed Schouten <ed_at_80386.nl> 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 :)
Received on Tue Aug 26 2008 - 15:53:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:34 UTC