vte: implement S7C1T and S8C1T
Both escape sequences are used to change the C1 escape character mode from using 8bit or 7bit escape codes/sequences. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
a7a51fcb80
commit
25b5a7583c
16
src/vte.c
16
src/vte.c
@ -559,6 +559,22 @@ static void do_esc(struct kmscon_vte *vte, uint32_t data)
|
||||
if (set_charset(vte, &kmscon_vte_unicode_upper))
|
||||
return;
|
||||
break;
|
||||
case 'F':
|
||||
if (vte->csi_flags & CSI_SPACE) {
|
||||
/* S7C1T */
|
||||
/* Disable 8bit C1 mode */
|
||||
vte->flags &= ~FLAG_USE_C1;
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 'G':
|
||||
if (vte->csi_flags & CSI_SPACE) {
|
||||
/* S8C1T */
|
||||
/* Enable 8bit C1 mode */
|
||||
vte->flags |= FLAG_USE_C1;
|
||||
return;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* everything below is only valid without CSI flags */
|
||||
|
Loading…
x
Reference in New Issue
Block a user