termptyesc: support DECSCLM but ignore it + test

This commit is contained in:
Boris Faure 2018-12-16 19:32:13 +01:00
parent eab5ffb956
commit 9c2b3887d1
3 changed files with 12 additions and 2 deletions

View File

@ -305,8 +305,7 @@ _handle_esc_csi_reset_mode(Termpty *ty, Eina_Unicode cc, Eina_Unicode *b,
#endif
break;
case 4:
WRN("TODO: scrolling mode (DECSCLM): %i", mode);
ty->decoding_error = EINA_TRUE;
DBG("scrolling mode (DECSCLM): %i (always fast mode)", mode);
break;
case 5:
ty->termstate.reverse = mode;

10
tests/decsclm.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
# set scrolling mode to fast
printf '\033[?4l'
# set scrolling mode to smooth
printf '\033[?4h'

View File

@ -29,3 +29,4 @@ colors.sh 532494a2e56c102ee10ab1a9b8f176d7
sgr-leading-trailing-semicolon.sh d7701f1193bde63412a9b969f17e10ec
sgr-truecolors.sh 9db4becc728bb9f1730f3573dc7fc668
sgr-long.sh ec0425b1daabaa59096c10939e79b105
decsclm.sh 1ffcea3bfc4704d9091272dc59cbb311