termptyesc: handle DSR-KBD but hardcode keyboard + test

This commit is contained in:
Boris Faure 2018-12-09 18:56:22 +01:00
parent 9ed1b61f23
commit e0ed4b4ad9
1 changed files with 14 additions and 0 deletions

View File

@ -997,6 +997,20 @@ _handle_esc_csi_dsr(Termpty *ty, Eina_Unicode *b)
termpty_write(ty, bf, len);
}
break;
case 26:
if (question_mark)
{
/* DSR-KBD (Keyboard)
* Reply North American */
termpty_write(ty, "\033[?27;1;0;0n",
strlen("\033[?27;1;0;0n"));
}
else
{
WRN("unhandled DSR (dec specific: %s) %d",
(question_mark)? "yes": "no", arg);
}
break;
case 75:
if (question_mark)
{