[vte/wip/egmont/bidi: 15/75] BDSM hook



commit dc6fcd244254095743b7a10ada427eed6688a441
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Aug 17 20:11:59 2018 +0200

    BDSM hook

 src/vteseq.cc | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index c41e34a1..c13a9dee 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -457,6 +457,13 @@ Terminal::set_mode_ecma(vte::parser::Sequence const& seq,
                         continue;
 
                 m_modes_ecma.set(mode, set);
+
+                if (mode == m_modes_ecma.eBDSM) {
+                        _vte_debug_print(VTE_DEBUG_BIDI,
+                                         "BiDi %s mode\n",
+                                         set ? "implicit" : "explicit");
+                        /* Will need to take immediate action too */
+                }
         }
 }
 


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