Kernel: Make backspace \b and delete 0x7F

This is what `vim` seems to expect and imo makes way more sense.
This commit is contained in:
2024-12-05 14:07:48 +02:00
parent 72d9e4c1e7
commit 51b6329c86
5 changed files with 23 additions and 29 deletions

View File

@@ -210,6 +210,8 @@ namespace Kernel
void SerialTTY::handle_irq()
{
uint8_t ch = IO::inb(m_serial.port());
if (ch == 0x7F)
ch = '\b';
SpinLockGuard _(m_input_lock);
if (m_input.full())