termptyesc: handle DSR-DIR (Data Integrity Report) + test

This commit is contained in:
Boris Faure 2018-12-09 18:45:21 +01:00
parent feb7495fbb
commit 9ed1b61f23
3 changed files with 22 additions and 1 deletions

View File

@ -997,6 +997,18 @@ _handle_esc_csi_dsr(Termpty *ty, Eina_Unicode *b)
termpty_write(ty, bf, len);
}
break;
case 75:
if (question_mark)
{
/* DSR-DIR (Data Integrity Report) */
termpty_write(ty, "\033[?70n", strlen("\033[?70n"));
}
else
{
WRN("unhandled DSR (dec specific: %s) %d",
(question_mark)? "yes": "no", arg);
}
break;
default:
WRN("unhandled DSR (dec specific: %s) %d",
(question_mark)? "yes": "no", arg);
@ -2470,7 +2482,7 @@ termpty_handle_seq(Termpty *ty, const Eina_Unicode *c, const Eina_Unicode *ce)
Eina_Unicode last_char = 0;
int len = 0;
/*
/*
printf(" B: ");
int j;
for (j = 0; c + j < ce && j < 100; j++)

8
tests/dsr-dir.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# fill space with E
printf '\033#8'
#set color
printf '\033[46;31;3m'
printf '\033[?75n'

View File

@ -18,3 +18,4 @@ xterm-osc-0-title-icon.sh cb5080cc1dbc23b553b62fbdc8cbdf68
xterm-osc-1-icon.sh 9202db6e81ce810f007035770934fecb
xterm-osc-2-title.sh 49a058f1813bdd64faab1cf1af3ebe09
dsr-cpr.sh 5a778fd856455475e695e5469e69d227
dsr-dir.sh f7dde335d44f8691041d40c3efd24ffb