termptyesc: handle CSI_ARG_ERROR in some SGR.

Closes T7475
This commit is contained in:
Boris Faure 2018-12-14 23:41:20 +01:00
parent 6931f96d0d
commit 119a4d12af
3 changed files with 13 additions and 0 deletions

View File

@ -712,6 +712,8 @@ _handle_esc_csi_color_set(Termpty *ty, Eina_Unicode **ptr,
case -CSI_ARG_ERROR:
return;
/* TODO: -CSI_ARG_NO_VALUE */
case -CSI_ARG_NO_VALUE:
EINA_FALLTHROUGH;
case 0: // reset to normal
termpty_reset_att(&(ty->termstate.att));
break;

View File

@ -0,0 +1,10 @@
#!/bin/sh
# fill space with E
printf '\033#8'
# cursor to 0,0
printf '\033[H'
printf '\e[31;mabcd\n'
printf '\e[;31mabcd\n'
printf '\e[46;;31mabcd\n'

View File

@ -26,3 +26,4 @@ dsr-os.sh 1645f13652d7ee51d66dc93000247280
dsr-pp.sh 0f0a7d5beccefbad4f4984fc4611276e
dsr-udk.sh f3a20968a2f25bfd36875dbc5f64ab16
colors.sh 532494a2e56c102ee10ab1a9b8f176d7
sgr-leading-trailing-semicolon.sh d7701f1193bde63412a9b969f17e10ec