termptyesc: handle CSI_ARG_ERROR in some SGR.

Closes T7475
terminology-1.4
Boris Faure 4 years ago
parent 6931f96d0d
commit 119a4d12af
  1. 2
      src/bin/termptyesc.c
  2. 10
      tests/sgr-leading-trailing-semicolon.sh
  3. 1
      tests/tests.results

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

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

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

Loading…
Cancel
Save