From: Alan Cox Date: Wed, 3 Oct 2018 12:11:01 +0000 (+0100) Subject: socz80: add tty masking X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d975c69b977b406db96e99aee4768f06ad16b01c;p=FUZIX.git socz80: add tty masking Needs updating to handling the improved bitstream with serial config --- diff --git a/Kernel/platform-socz80/devtty.c b/Kernel/platform-socz80/devtty.c index c1e6f2f4..992f2399 100644 --- a/Kernel/platform-socz80/devtty.c +++ b/Kernel/platform-socz80/devtty.c @@ -15,6 +15,20 @@ struct s_queue ttyinq[NUM_DEV_TTY+1] = { /* ttyinq[0] is never used */ { tbuf2, tbuf2, tbuf2, TTYSIZ, 0, TTYSIZ/2 } }; +static tcflag_t console_mask[4] = { + _ISYS, + _OSYS, + _CSYS, + _LSYS +}; + +/* FIXME: will do for now though */ +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask +}; + /* console helper */ void kputchar(char c) {