From 2232dfb1cce7f4aa32d47fa1df2092e4cf6177f9 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 1 Oct 2018 23:06:49 +0100 Subject: [PATCH] msx1: tty masks --- Kernel/platform-msx1/devtty.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-msx1/devtty.c b/Kernel/platform-msx1/devtty.c index 6fcd7397..9e7ffd04 100644 --- a/Kernel/platform-msx1/devtty.c +++ b/Kernel/platform-msx1/devtty.c @@ -29,6 +29,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 +}; + +tcflag_t *termios_mask[NUM_DEV_TTY + 1] = { + NULL, + console_mask, + console_mask +}; + + uint8_t vtattr_cap = 0; /* For now */ /* tty1 is the screen tty2 is the debug port */ @@ -53,7 +67,6 @@ void tty_putc(uint8_t minor, unsigned char c) { minor; tty_debug2 = c; -// // if (minor == 1) { vtoutput(&c, 1); // return; -- 2.34.1