From 3d1cd5d83b07686e67de5c311e28372c175ddc9f Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 12 May 2024 19:30:28 -0400 Subject: kernel: vcons: Don't touch termios Signed-off-by: Ian Moffett --- sys/dev/vcons/vcons_io.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sys/dev/vcons/vcons_io.c') diff --git a/sys/dev/vcons/vcons_io.c b/sys/dev/vcons/vcons_io.c index a3d6042..4c0151a 100644 --- a/sys/dev/vcons/vcons_io.c +++ b/sys/dev/vcons/vcons_io.c @@ -52,17 +52,15 @@ vcons_expand_tab(struct vcons_screen *scr) int vcons_process_output(struct vcons_screen *scr, int c) { - struct termios termios = scr->termios; struct vcons_cursor *cursor = &scr->cursor; switch (c) { case ASCII_LF: - if (__TEST(termios.c_oflag, OCRNL)) { - scr->cpy_x = 0; - cursor->xpos = 0; - } scr->cpy_y++; cursor->ypos += FONT_HEIGHT; + + scr->cpy_x = 0; + cursor->xpos = 0; break; case ASCII_CR: scr->cpy_x = 0; -- cgit v1.2.3