summaryrefslogtreecommitdiff
path: root/sys/dev/vcons
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-12 19:30:28 -0400
committerIan Moffett <ian@osmora.org>2024-05-12 19:30:28 -0400
commit3d1cd5d83b07686e67de5c311e28372c175ddc9f (patch)
tree6d422cef76e0e77a31ca645ae6762228f71aef22 /sys/dev/vcons
parent9997280d8015124bd29375001c8f15d9cab0d023 (diff)
kernel: vcons: Don't touch termios
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/vcons')
-rw-r--r--sys/dev/vcons/vcons_io.c8
1 files changed, 3 insertions, 5 deletions
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;