termpty: add debug on CHA + test

This commit is contained in:
Boris Faure 2018-12-16 19:41:34 +01:00
parent 9c2b3887d1
commit 5f715b9290
3 changed files with 13 additions and 0 deletions

View File

@ -1686,6 +1686,7 @@ CUF:
break;
case 'G': // to column N
arg = _csi_arg_get(ty, &b);
DBG("CHA - Cursor Horizontal Absolute: %d", arg);
if (arg == -CSI_ARG_ERROR)
goto error;
if (arg < 1)

11
tests/cha.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80$x'
#set color
printf '\033[46;31;3m'
printf '\033[3G1'
printf '\033[G2'
printf '\033[444444G3'

View File

@ -30,3 +30,4 @@ sgr-leading-trailing-semicolon.sh d7701f1193bde63412a9b969f17e10ec
sgr-truecolors.sh 9db4becc728bb9f1730f3573dc7fc668
sgr-long.sh ec0425b1daabaa59096c10939e79b105
decsclm.sh 1ffcea3bfc4704d9091272dc59cbb311
cha.sh 04092c42102eb0d71ae700ee47c9ac34