diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-01-25 23:44:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-01-25 23:44:53 +0000 |
| commit | 4a64e4aebc7950ae810df67e2e3bd1cbf6b362dc (patch) | |
| tree | 7ea0f6197b62a9d04f66b86cc127be82c497ede5 | |
| parent | dcs: remove abort() from BSU/ESU (diff) | |
vt: bug: state machine: csi entry: handle 0x3a/0x3b correctly
0x3a/0x3b are ':' and ';'. These should not only switch to the 'csi
param' state, but also be parsed as a parameter.
This fixes an issue where a multi-parameter escape with the first
parameter omitted was parsed incorrectly - as if the first parameter
wasn't there.
I.e. "\e[;123r" was parsed as "\e[123r"
| -rw-r--r-- | vt.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -606,7 +606,7 @@ state_csi_entry_switch(struct terminal *term, uint8_t data) case 0x20 ... 0x2f: action_collect(term, data); return STATE_CSI_INTERMEDIATE; case 0x30 ... 0x39: action_param(term, data); return STATE_CSI_PARAM; - case 0x3a ... 0x3b: return STATE_CSI_PARAM; + case 0x3a ... 0x3b: action_param(term, data); return STATE_CSI_PARAM; case 0x3c ... 0x3f: action_collect(term, data); return STATE_CSI_PARAM; case 0x40 ... 0x7e: action_csi_dispatch(term, data); return STATE_GROUND; case 0x7f: action_ignore(term); return STATE_CSI_ENTRY; |
