aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-01-07 22:32:42 +0100
committerBoris Faure <billiob@gmail.com>2019-01-07 22:32:42 +0100
commit19631a70f6c3d219be429fe605a7fc554d4525b6 (patch)
treeab06314d0f6e1f66fdbf054cf2c82f245a4e9b4f
parenttermptyesc: extract SD/SU to their own functions (diff)
downloadterminology-19631a70f6c3d219be429fe605a7fc554d4525b6.tar.gz
termptyesc: 'T' can also refer to Unset Title Modes (not handled)
-rw-r--r--src/bin/termptyesc.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 252227c..3ce48c8 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -2692,6 +2692,15 @@ _handle_esc_csi_sd(Termpty *ty, Eina_Unicode **ptr)
termpty_text_scroll_rev(ty, EINA_TRUE);
}
+static void
+_handle_xterm_unset_title_modes(Termpty *ty EINA_UNUSED,
+ Eina_Unicode **ptr EINA_UNUSED,
+ const Eina_Unicode * const end EINA_UNUSED)
+{
+ DBG("Unset Title Modes: TODO");
+}
+
+
static int
_handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
{
@@ -2779,7 +2788,10 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
_handle_esc_csi_su(ty, &b);
break;
case 'T':
- _handle_esc_csi_sd(ty, &b);
+ if (*b == '?')
+ _handle_xterm_unset_title_modes(ty, &b, be);
+ else
+ _handle_esc_csi_sd(ty, &b);
break;
case 'X': // erase N chars
arg = _csi_arg_get(ty, &b);