aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-09 22:44:58 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commit8f2e15478dea326349149d54a8885f3d552bdb5b (patch)
tree8658ec6f4b48072a567d1b29bdb6b812f69ef92a /src
parenttermptyesc: add support DSR-DECCKSR + test (diff)
downloadterminology-8f2e15478dea326349149d54a8885f3d552bdb5b.tar.gz
termptyesc: support DSR-OS + test
Diffstat (limited to 'src')
-rw-r--r--src/bin/termptyesc.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 2ad0bf3..0dbc47a 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -971,6 +971,20 @@ _handle_esc_csi_dsr(Termpty *ty, Eina_Unicode *b)
arg = _csi_arg_get(&b);
switch (arg)
{
+ case 5:
+ if (question_mark)
+ {
+ WRN("unhandled DSR (dec specific: %s) %d",
+ (question_mark)? "yes": "no", arg);
+ }
+ else
+ {
+ /* DSR-OS (Operating Status)
+ * Reply Ok */
+ termpty_write(ty, "\033[0n",
+ strlen("\033[0n"));
+ }
+ break;
case 6:
{
int cx = ty->cursor_state.cx,