diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-12 19:38:59 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-12 19:38:59 -0400 |
commit | dc213e49d5c0ecc4de7939b57bd84b09f5d1318a (patch) | |
tree | 135ccd4711fcaa2c1a2bc93a69b76db1e8deff69 /sys/kern/kern_syslog.c | |
parent | b7b4b42f19edcdc751688b691ad985d2e6fd91ff (diff) |
kernel: tty: Add initial TTY code
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syslog.c')
-rw-r--r-- | sys/kern/kern_syslog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_syslog.c b/sys/kern/kern_syslog.c index fe996e4..6f2852a 100644 --- a/sys/kern/kern_syslog.c +++ b/sys/kern/kern_syslog.c @@ -29,6 +29,7 @@ #include <sys/syslog.h> #include <sys/machdep.h> +#include <sys/tty.h> #include <dev/vcons/vcons.h> #include <string.h> @@ -44,8 +45,10 @@ syslog_write(const char *s, size_t len) #if defined(__SERIAL_DEBUG) serial_dbgch(*tmp_s); #endif /* defined(__SERIAL_DEBUG) */ - vcons_putch(&g_syslog_screen, *tmp_s++); + tty_putc(&g_root_tty, *tmp_s++); } + + tty_flush(&g_root_tty); } void |