Implement shift+<key> support, and ...
[lunaix-os.git] / lunaix-os / kernel / tty / tty.c
index cc70087992a14ed4c9167ec3d29de89a15f667d7..4a20a77b2a20885e514c589593186145ccfbacdc 100644 (file)
@@ -41,6 +41,10 @@ tty_put_char(char chr)
         case '\r':
             tty_x = 0;
             break;
+        case '\x08':
+            tty_x = tty_x ? tty_x - 1 : 0;
+            *(tty_vga_buffer + tty_x + tty_y * TTY_WIDTH) = (tty_theme_color | 0x20);
+            break;
         default:
             *(tty_vga_buffer + tty_x + tty_y * TTY_WIDTH) = (tty_theme_color | chr);
             tty_x++;