[vte/wip/egmont/bidi: 24/82] BDSM hook



commit ac44b0eb5c7edda40fe891ff7abdda85398d86ef
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 db9d9d95..08bdec86 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]