ソースを参照

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 1 年間 前
コミット
d6c8b4d279

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

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

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

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