1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:58:11 +00:00

LibVT: Add stubs for DECPNM, DECPAM

Still not implemented, but provides easier to grasp FIXMEs.
This commit is contained in:
Jelle Raaijmakers 2021-09-30 11:43:17 +02:00 committed by Linus Groh
parent 91ad7754fe
commit e33e0e6a27
2 changed files with 22 additions and 0 deletions

View file

@ -953,6 +953,16 @@ void Terminal::DECDC(Parameters params)
scroll_left(row, cursor_column(), num);
}
void Terminal::DECPNM()
{
dbgln("FIXME: implement setting the keypad to numeric mode");
}
void Terminal::DECPAM()
{
dbgln("FIXME: implement setting the keypad to application mode");
}
void Terminal::DSR(Parameters params)
{
if (params.size() == 1 && params[0] == 5) {
@ -1077,6 +1087,12 @@ void Terminal::execute_escape_sequence(Intermediates intermediates, bool ignore,
case '9':
DECFI();
return;
case '=':
DECPAM();
return;
case '>':
DECPNM();
return;
}
} else if (intermediates[0] == '#') {
switch (last_byte) {

View file

@ -361,6 +361,12 @@ protected:
// DECDC - Delete Column
void DECDC(Parameters);
// DECPNM - Set numeric keypad mode
void DECPNM();
// DECPAM - Set application keypad mode
void DECPAM();
#ifndef KERNEL
TerminalClient& m_client;
#else