1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:17:45 +00:00

LibVT: Support NEL (Next Line)

I think this can just behave as if you sent a newline character ('\n').
This commit is contained in:
Andreas Kling 2020-01-25 20:01:43 +01:00
parent ab77bd4c3a
commit 897ad1b927
2 changed files with 11 additions and 0 deletions

View file

@ -767,6 +767,12 @@ void Terminal::put_character_at(unsigned row, unsigned column, u8 ch)
m_last_char = ch;
}
void Terminal::NEL()
{
// NEL - Next Line
newline();
}
void Terminal::on_char(u8 ch)
{
#ifdef TERMINAL_DEBUG
@ -783,6 +789,10 @@ void Terminal::on_char(u8 ch)
m_escape_state = ExpectXtermParameter1;
} else if (ch == '#') {
m_escape_state = ExpectHashtagDigit;
} else if (ch == 'E') {
NEL();
m_escape_state = Normal;
return;
} else {
m_escape_state = Normal;
}