implemented CSI ! p as an alias to ESC c

This commit is contained in:
2017-08-20 14:57:47 +02:00
parent 8d9c5bb246
commit 276af04945
+11 -1
View File
@@ -645,7 +645,7 @@ apars_handle_CSI(char leadchar, const int *params, int count, char keychar)
}
break;
case 'x': // DECREPTPARM
case 'x': // DECREQTPARM -> DECREPTPARM
if (n1 <= 1) {
respond("\033[3;"); // this is a response on request (2 would be gratuitous)
@@ -675,6 +675,16 @@ apars_handle_CSI(char leadchar, const int *params, int count, char keychar)
}
break;
case 'p':
if (leadchar == '!') { // RIS
/* On real VT there are differences between soft and hard reset, we treat both equally */
screen_reset();
} else {
ansi_warn("NOIMPL: CSI");
apars_handle_badseq();
}
break;
default:
ansi_warn("NOIMPL: CSI Pm %c", keychar);
apars_handle_badseq();