aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-09 22:39:45 +0100
committerBoris Faure <billiob@gmail.com>2018-12-27 22:14:44 +0100
commitaebbed39e6c9d13bb284208c50a23589850c4dd9 (patch)
tree0c876d094b06c92b4ce8296eb0887f8da257b04d /src
parenttermptyesc: support DSR-MSR (0 Macro Space) + test (diff)
downloadterminology-aebbed39e6c9d13bb284208c50a23589850c4dd9.tar.gz
termptyesc: add support DSR-DECCKSR + 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 8db6bd9..2ad0bf3 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1025,6 +1025,20 @@ _handle_esc_csi_dsr(Termpty *ty, Eina_Unicode *b)
(question_mark)? "yes": "no", arg);
}
break;
+ case 63:
+ if (question_mark)
+ {
+ /* DSR-DECCKSR (Memory Checksum) */
+ int pid = _csi_arg_get(&b);
+ len = snprintf(bf, sizeof(bf), "\033P%u!~0000\033\\", pid);
+ termpty_write(ty, bf, len);
+ }
+ else
+ {
+ WRN("unhandled DSR (dec specific: %s) %d",
+ (question_mark)? "yes": "no", arg);
+ }
+ break;
case 75:
if (question_mark)
{