1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 11:57:35 +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); 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) void Terminal::DSR(Parameters params)
{ {
if (params.size() == 1 && params[0] == 5) { if (params.size() == 1 && params[0] == 5) {
@ -1077,6 +1087,12 @@ void Terminal::execute_escape_sequence(Intermediates intermediates, bool ignore,
case '9': case '9':
DECFI(); DECFI();
return; return;
case '=':
DECPAM();
return;
case '>':
DECPNM();
return;
} }
} else if (intermediates[0] == '#') { } else if (intermediates[0] == '#') {
switch (last_byte) { switch (last_byte) {

View file

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