[vte] parser: Add DECFNK sequence



commit f69eadf4fa48bbf8b45c36d9a9b71fbf6049557c
Author: Christian Persch <chpe src gnome org>
Date:   Fri May 1 23:08:42 2020 +0200

    parser: Add DECFNK sequence

 src/parser-cmd.hh   |  1 +
 src/parser-reply.hh |  2 +-
 src/vteseq.cc       | 11 +++++++++++
 3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/src/parser-cmd.hh b/src/parser-cmd.hh
index c562d7c0..f8481dd3 100644
--- a/src/parser-cmd.hh
+++ b/src/parser-cmd.hh
@@ -159,6 +159,7 @@ _VTE_NOP(DECELR) /* enable locator reporting */
 _VTE_NOP(DECERA) /* erase rectangular area */
 _VTE_NOP(DECES) /* enable session */
 _VTE_NOP(DECFI) /* forward index */
+_VTE_NOP(DECFNK) /* function key */
 _VTE_NOP(DECFRA) /* fill rectangular area */
 _VTE_NOP(DECIC) /* insert column */
 _VTE_NOP(DECINVM) /* invoke macro */
diff --git a/src/parser-reply.hh b/src/parser-reply.hh
index 259145d8..81e1b516 100644
--- a/src/parser-reply.hh
+++ b/src/parser-reply.hh
@@ -47,7 +47,7 @@ _VTE_REPLY(DECPKMFR,                                  CSI, 'y', NONE, PLUS,  ) /
 _VTE_REPLY(DECRPM_ECMA,                               CSI, 'y', NONE, CASH,  ) /* report ECMA mode */
 _VTE_REPLY(DECRPM_DEC,                                CSI, 'y', WHAT, CASH,  ) /* report private mode */
 _VTE_REPLY(DECMSR,                                    CSI, '{', NONE, MULT,  ) /* macro space report */
-_VTE_REPLY(XTERM_BRACKET,                             CSI, '~', NONE, NONE,  ) /* XTERM bracketed paste */
+_VTE_REPLY(DECFNK,                                    CSI, '~', NONE, NONE,  ) /* dec function key / XTERM 
bracketed paste */
 
 _VTE_REPLY(DECTABSR,    DCS, '@', NONE, CASH,  ) /* tabulation stop report */
 _VTE_REPLY(DECRPSS,     DCS, 'r', NONE, CASH,  ) /* report state or setting */
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 2d00ceec..15046d41 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -2991,6 +2991,17 @@ Terminal::DECFI(vte::parser::Sequence const& seq)
          */
 }
 
+void
+Terminal::DECFNK(vte::parser::Sequence const& seq)
+{
+        /*
+         * DECFNK - function key (or XTERM bracketed paste)
+         *
+         * References: VT525
+         *             XTERM
+         */
+}
+
 void
 Terminal::DECFRA(vte::parser::Sequence const& seq)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]