Inserting flow-control chars with an mpsafetty kernel
Giorgos Keramidas
keramida at freebsd.org
Tue Aug 26 17:53:43 UTC 2008
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 :)
More information about the freebsd-current
mailing list