termptyesc: handle transparent in SGR38/SGR48

This commit is contained in:
Boris Faure 2018-03-11 20:56:22 +01:00
parent 91ced6390f
commit c7c054bf0d
1 changed files with 8 additions and 0 deletions

View File

@ -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 =