vte: implement DECSCL 'p' CSI
DECSCL is used to select compatibility modes. We do not support the VT100 compatibility mode explicitely or the VT220 mode, however, we always send 7-bit control characters and support escape sequences from both series so we can safely ignore DECSCL. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
4b656aaa11
commit
6b5fb5613d
17
src/vte.c
17
src/vte.c
@ -518,6 +518,23 @@ static void do_csi(struct kmscon_vte *vte, uint32_t data)
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'p': /* DECSCL: Compatibility Level */
|
||||
if (vte->csi_argv[0] == 61) {
|
||||
/* Switching to VT100 compatibility mode. We do
|
||||
* not support this mode, so ignore it. In fact,
|
||||
* we are almost compatible to it, anyway, so
|
||||
* there is no need to explicitely select it. */
|
||||
} else if (vte->csi_argv[0] == 62) {
|
||||
/* Switching to VT220 compatibility mode. We are
|
||||
* always compatible with this so ignore it.
|
||||
* We always send 7bit controls so we also do
|
||||
* not care for the parameter value here that
|
||||
* select the control-mode. */
|
||||
} else {
|
||||
log_debug("unhandled DECSCL 'p' CSI %i",
|
||||
vte->csi_argv[0]);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
log_debug("unhandled CSI sequence %c", data);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user