dead simple printf/sprintf implementation.
[lunaix-os.git] / lunaix-os / kernel / tty / tty.c
index db9c28b572decbe640339f229156da15816a0755..2629c747f96b1dae44324895d09675ed18a315c4 100644 (file)
@@ -26,9 +26,7 @@ tty_put_char(char chr)
             tty_x += 4;
             break;
         case '\n':
-            tty_x = 0;
             tty_y++;
-            break;
         case '\r':
             tty_x = 0;
             break;
@@ -73,4 +71,6 @@ tty_clear()
     for (uint32_t i = 0; i < TTY_WIDTH * TTY_HEIGHT; i++) {
         *(buffer + i) = theme_color;
     }
+    tty_x = 0;
+    tty_y = 0;
 }
\ No newline at end of file