commit | 19ef4188c956fafd8668e2e9c8588f2d7d379256 | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Sun Feb 21 17:45:51 2021 -0800 |
committer | swissChili <swisschili@fastmail.com> | Sun Feb 21 17:45:51 2021 -0800 |
tree | b45641a72492ccc53e3627c9421f9d65cf5f58da | |
parent | 825d46b68a91b53bb8d32db876488b987761009f [diff] [blame] |
Add preliminary PS/2 keyboard support
diff --git a/src/vga.c b/src/vga.c index b6edbb0..bfd13e0 100644 --- a/src/vga.c +++ b/src/vga.c
@@ -49,6 +49,7 @@ case '\b': if (cursor_x > 0) cursor_x--; + fb[cursor_y * 80 + cursor_x] = ' ' | (color << 8); break; case '\t': cursor_x = (cursor_x + 8) & ~7; @@ -59,8 +60,8 @@ cursor_x = 0; break; default: - cursor_x++; fb[cursor_y * 80 + cursor_x] = c | (color << 8); + cursor_x++; } if (cursor_x >= 80) // off screen