Explorar o código

LibVT: Adjust some method names to align with documentation

Align DECKPAM and DECKPNM method names with those from
https://vt100.net/docs/vt100-ug/chapter3.html#DECKPAM
hanaa12G hai 1 ano
pai
achega
d6c8b4d279

+ 4 - 4
Userland/Libraries/LibVT/Terminal.cpp

@@ -941,12 +941,12 @@ void Terminal::DECDC(Parameters params)
         scroll_left(row, cursor_column(), num);
         scroll_left(row, cursor_column(), num);
 }
 }
 
 
-void Terminal::DECPNM()
+void Terminal::DECKPNM()
 {
 {
     dbgln("FIXME: implement setting the keypad to numeric mode");
     dbgln("FIXME: implement setting the keypad to numeric mode");
 }
 }
 
 
-void Terminal::DECPAM()
+void Terminal::DECKPAM()
 {
 {
     dbgln("FIXME: implement setting the keypad to application mode");
     dbgln("FIXME: implement setting the keypad to application mode");
 }
 }
@@ -1081,10 +1081,10 @@ void Terminal::execute_escape_sequence(Intermediates intermediates, bool ignore,
             DECFI();
             DECFI();
             return;
             return;
         case '=':
         case '=':
-            DECPAM();
+            DECKPAM();
             return;
             return;
         case '>':
         case '>':
-            DECPNM();
+            DECKPNM();
             return;
             return;
         }
         }
         unimplemented_escape_sequence(intermediates, last_byte);
         unimplemented_escape_sequence(intermediates, last_byte);

+ 2 - 2
Userland/Libraries/LibVT/Terminal.h

@@ -366,10 +366,10 @@ protected:
     void DECDC(Parameters);
     void DECDC(Parameters);
 
 
     // DECPNM - Set numeric keypad mode
     // DECPNM - Set numeric keypad mode
-    void DECPNM();
+    void DECKPNM();
 
 
     // DECPAM - Set application keypad mode
     // DECPAM - Set application keypad mode
-    void DECPAM();
+    void DECKPAM();
 
 
 #ifndef KERNEL
 #ifndef KERNEL
     TerminalClient& m_client;
     TerminalClient& m_client;