summarylogtreecommitdiffstats
path: root/ttyscrn.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ttyscrn.patch')
-rw-r--r--ttyscrn.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/ttyscrn.patch b/ttyscrn.patch
new file mode 100644
index 000000000000..a6d0f1a5a1ce
--- /dev/null
+++ b/ttyscrn.patch
@@ -0,0 +1,11 @@
+--- src/libc/posix/termios/ttyscrn.c
++++ src/libc/posix/termios/ttyscrn.c
+@@ -464,7 +464,7 @@
+ __dpmi_int(0x10, &r);
+ if (++(*col) > __tty_screen.max_col)
+ {
+- col = 0;
++ *col = 0;
+ ++row;
+ }
+ __tty_screen.set_cursor(*col, *row);