Implement DECRQM

Also add tests for DECRQM and DECCKM
This commit is contained in:
Kovid Goyal
2017-02-05 16:21:13 +05:30
parent 142c883b0c
commit bb7edb5f8f
4 changed files with 43 additions and 1 deletions
+10 -1
View File
@@ -314,7 +314,8 @@ dispatch_osc(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
case '"': \
case '*': \
case '\'': \
case ' ':
case ' ': \
case '$':
static inline void
@@ -472,6 +473,14 @@ dispatch_csi(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
CALL_CSI_HANDLER1(screen_indexn, 1);
case SD:
CALL_CSI_HANDLER1(screen_reverse_indexn, 1);
case DECSTR:
if (end_modifier == '$') {
// DECRQM
CALL_CSI_HANDLER1P(report_mode_status, 0, '?');
} else {
REPORT_ERROR("Unknown DECSTR CSI sequence with start and end modifiers: 0x%x 0x%x", start_modifier, end_modifier);
}
break;
default:
REPORT_ERROR("Unknown CSI code: 0x%x", code);
}