diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 08:47:17 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-14 08:47:17 +0000 |
| commit | cabcc615c1b22101ce30121fcedee457a61559da (patch) | |
| tree | def0668876fa706ca17016bff6ec3991fb1bd94b /vt.c | |
| parent | term: line-wrap: use term_cursor_{down,left} (diff) | |
vt: change HT (horizontal tab) to *not* clear LCF
According to the specification, HT **should** clear LCF. However,
nearly all emulators do not. In particular, XTerm doesn't. So we
follow suite.
Diffstat (limited to 'vt.c')
| -rw-r--r-- | vt.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -142,7 +142,13 @@ action_execute(struct terminal *term, uint8_t c) } } assert(new_col >= term->grid->cursor.point.col); + + /* According to the specification, HT _should_ cancel LCF. But + * XTerm, and nearly all other emulators, don't. So we follow + * suite */ + bool lcf = term->grid->cursor.lcf; term_cursor_right(term, new_col - term->grid->cursor.point.col); + term->grid->cursor.lcf = lcf; break; } |
