aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-03-11 20:56:22 +0100
committerBoris Faure <billiob@gmail.com>2018-03-11 22:35:41 +0100
commitc7c054bf0dd7d49d2f1c6ad09038771902eef342 (patch)
treeef3770146b00597165078a9d0ee31d80d932cd8e
parenttermptyesc: skip colorspace id if present. Ref T746 (diff)
downloadterminology-c7c054bf0dd7d49d2f1c6ad09038771902eef342.tar.gz
termptyesc: handle transparent in SGR38/SGR48
-rw-r--r--src/bin/termptyesc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 3e14672..1f92aa0 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -681,6 +681,10 @@ _handle_esc_csi_color_set(Termpty *ty, Eina_Unicode **ptr)
arg = _csi_arg_get(&b);
switch (arg)
{
+ case 1:
+ ty->termstate.att.fg256 = 0;
+ ty->termstate.att.fg = COL_INVIS;
+ break;
case 2:
ty->termstate.att.fg256 = 1;
ty->termstate.att.fg =
@@ -732,6 +736,10 @@ _handle_esc_csi_color_set(Termpty *ty, Eina_Unicode **ptr)
arg = _csi_arg_get(&b);
switch (arg)
{
+ case 1:
+ ty->termstate.att.bg256 = 0;
+ ty->termstate.att.bg = COL_INVIS;
+ break;
case 2:
ty->termstate.att.bg256 = 1;
ty->termstate.att.bg =