From: Alan Cox Date: Mon, 1 Oct 2018 22:52:41 +0000 (+0100) Subject: z80pack: update for tty masks X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fdc62ef6dd8df9e370bb3e6940e0686058161cd4;p=FUZIX.git z80pack: update for tty masks --- diff --git a/Kernel/dev/z80pack/devtty.c b/Kernel/dev/z80pack/devtty.c index b7c346cd..74c0de85 100644 --- a/Kernel/dev/z80pack/devtty.c +++ b/Kernel/dev/z80pack/devtty.c @@ -27,6 +27,22 @@ struct s_queue ttyinq[NUM_DEV_TTY+1] = { /* ttyinq[0] is never used */ { tbuf4, tbuf4, tbuf4, TTYSIZ, 0, TTYSIZ/2 } }; +/* We have no actual controls on the virtual ports */ +static tcflag_t port_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + port_mask, + port_mask, + port_mask, + port_mask +}; + static uint8_t ttypoll; /* Write to system console */