aboutsummaryrefslogtreecommitdiff
path: root/vt.c (unfollow)
Commit message (Expand)AuthorLines
2021-07-02vt: add some unit tests for action_collect()Craig Barnes-0/+23
2021-07-01config: rename at-most-2 (value for grapheme-width-method) to double-widthDaniel Eklöf-1/+1
2021-07-01config: add tweak.grapheme-width-method=wcswidth|at-most-2Daniel Eklöf-5/+14
2021-07-01vt: limit grapheme width to 2 cellsDaniel Eklöf-5/+3
2021-06-25vt: don’t reset utf8proc grapheme state when we’re not at a grapheme breakDaniel Eklöf-5/+8
2021-06-24vt: utf8: rotate instead of just shifting when updating compose keyDaniel Eklöf-4/+7
2021-06-24vt: improved key hash algorithm -> reduces number of key collisionsDaniel Eklöf-3/+10
2021-06-24composed: insert: require key to be uniqueDaniel Eklöf-3/+5
2021-06-24vt: codespell: bumb -> bumpDaniel Eklöf-1/+1
2021-06-24composed: store compose chains in a binary search treeDaniel Eklöf-38/+52
2021-06-24vt: utf8: don’t scan *all* previous chainsDaniel Eklöf-1/+3
2021-06-24vt: utf8: de-duplicate; jump to end of function to print to gridDaniel Eklöf-26/+25
2021-06-24vt: utf8-print: don’t build a compose chain on a zero-width base characterDaniel Eklöf-87/+89
2021-06-24vt: utf8-print: check base character before count when looking for existing compose chainDaniel Eklöf-2/+2
2021-06-24vt: don’t call wcwidth() on all combining characters every time we addDaniel Eklöf-11/+7
2021-06-24vt: presentation selectors may be anywhere in the clusterDaniel Eklöf-8/+10
2021-06-24vt: don’t force cols=2 when we see an emoji variant selectorDaniel Eklöf-1/+3
2021-06-24vt: cache grapheme cluster width in composed structDaniel Eklöf-4/+10
2021-06-24wip: grapheme shapingDaniel Eklöf-108/+128
2021-06-09terminal: add 'charset_designator' enum to make code more self-documentingCraig Barnes-8/+8
2021-06-08vt: fix SS2/SS3 escape sequences to act correctly as single shiftsCraig Barnes-4/+2
2021-06-08vt: add support for LS2 and LS3 locking shiftsCraig Barnes-0/+12
2021-06-08vt: TAB: don’t print a ‘\t’ to the grid if the *current* cell isn’t emptyDaniel Eklöf-3/+4
2021-06-08vt: emit a tab character if all cells between cursor and tab stop are emptyDaniel Eklöf-3/+40
2021-06-08vt: fix buggy chains of ternary expressions in action_esc_dispatch()Craig Barnes-18/+9
2021-06-07vt: \E#8: print ‘E’ using the default attributesDaniel Eklöf-1/+1
2021-05-25vt: remove action_utf8_print(term, 0) calls from UTF-8 state handlersCraig Barnes-6/+6
2021-05-25vt: remove partial support for 8-bit C1 control charsCraig Barnes-20/+6
2021-05-15Update `term->vt.state` for each iteration of vt_from_slave() loopCraig Barnes-3/+2
2021-05-14term: rename CELL_MULT_COL_SPACER -> CELL_SPACER, and change its definitionDaniel Eklöf-1/+1
2021-05-13vt: make anywhere() function return `term->vt.state` by defaultCraig Barnes-14/+14
2021-05-13vt: clean up handling of "anywhere" actionsCraig Barnes-201/+44
2021-04-18term/vt: only do reverse-wrapping (‘bw’) on cub1Daniel Eklöf-2/+15
2021-04-08term/vt: only do reverse-wrapping (‘bw’) on cub1Daniel Eklöf-2/+15
2021-03-16term: runtime switch between a ‘fast’ and a ‘generic’ ASCII print functionDaniel Eklöf-16/+7
2021-02-07vt: remove xassert(), that cannot be optimized out, from action_print()Daniel Eklöf-2/+0
2021-01-16debug: rename assert() to xassert(), to avoid clashing with <assert.h>Craig Barnes-11/+11
2021-01-16Print stack trace on assert() failure or when calling fatal_error()Craig Barnes-1/+1
2021-01-15vt: document correct BS behavior, and why we do differentlyDaniel Eklöf-0/+12
2021-01-15term/vt/csi: break out cursor save/restore to dedicated functionsDaniel Eklöf-5/+1
2021-01-03Use wrappers from macros.h instead of bare GCC attributes/pragmasCraig Barnes-7/+2
2020-12-16vt: codespell: ony -> onlyDaniel Eklöf-1/+1
2020-12-16vt: don’t ignore extra private/intermediate charactersDaniel Eklöf-13/+27
2020-12-07ime: render pre-edit textDaniel Eklöf-1/+1
2020-12-07ime: wip: commit all changes in ‘done()’Daniel Eklöf-1/+1
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-349/+375
2020-10-08bell: optionally render margins in red when receiving BELDaniel Eklöf-2/+1
2020-10-02vt: BS: *only* reset lcf if cursor is beyond right margin: don’t move cursorDaniel Eklöf-1/+4
2020-08-23vt: hide pedantic warnings around the VT state machine's switch casesDaniel Eklöf-0/+9
2020-08-16Fix spelling mistake in vt.cCraig Barnes-1/+1
2020-08-08Convert most dynamic allocations to use functions from xmalloc.hCraig Barnes-1/+2
2020-07-16vt: never call term_print() with a width <= 0Daniel Eklöf-1/+2
2020-07-16vt: ignore 0x7f (DEL) in ground stateDaniel Eklöf-1/+4
2020-07-16vt: utf8: handle multi-column spacer values correctly when combiningDaniel Eklöf-6/+3
2020-07-14term: rename COMB_CHARS_LO,HI -> CELL_COMB_CHARS_LO,HIDaniel Eklöf-6/+6
2020-07-14vt: change HT (horizontal tab) to *not* clear LCFDaniel Eklöf-0/+6
2020-07-14term: rename term_formfeed() -> term_carriage_return()Daniel Eklöf-2/+3
2020-07-14vt: implement C0::FF - processed in the same way as C0::LFDaniel Eklöf-0/+2
2020-07-14vt: process C0::VT the same way we process C0::LFDaniel Eklöf-6/+3
2020-07-14vt: sort C0's in the switch statement, and use escaped character possibleDaniel Eklöf-16/+16
2020-06-09unicode combining: don't log overflow errors unless LOG_ENABLE_DBG == 1Daniel Eklöf-1/+2
2020-06-09vt: utf8-print: check width == 0 first, when deciding whether to do combiningDaniel Eklöf-1/+1
2020-06-07vt: initial version of UTF-8 decoding built-in into the VT parserDaniel Eklöf-33/+133
2020-05-31vt: utf8: use mbtowc() instead of mbrtowc()Daniel Eklöf-8/+2
2020-05-31vt: utf8: don't need one entry action for each UTF8 variantDaniel Eklöf-20/+6
2020-05-10unicode-combine: simplify - remove -Dunicode-precompose optionDaniel Eklöf-2/+0
2020-05-09unicode-precompose: use fcft's precompose functionalityDaniel Eklöf-36/+25
2020-05-03unicode-combining: limit maximum number of allowed composed chainsDaniel Eklöf-5/+12
2020-05-03unicode-combining: detect when we've reached the chain limitDaniel Eklöf-0/+14
2020-05-03unicode-combining: store seen combining chains "globally" in the term structDaniel Eklöf-16/+43
2020-05-02vt: use signed integers to correctly detect when we're doneDaniel Eklöf-2/+2
2020-05-02meson: don't generate pre-compose table when -Dunicode-precompose=falseDaniel Eklöf-0/+2
2020-05-02unicode-combine: remove utf8proc dependencyDaniel Eklöf-17/+40
2020-05-02unicode-combining: don't limit ourselves to the (western) diacritics blocksDaniel Eklöf-13/+19
2020-05-01unicode-combine: only compose if we don't have any other combining charactersDaniel Eklöf-16/+24
2020-05-01vt: utf8: track combining characters that we failed to composeDaniel Eklöf-15/+37
2020-05-01util.h: new header file defining commonly used macrosDaniel Eklöf-3/+1
2020-04-27vt: lazily reset utf8 in action_utf8_*_entryDaniel Eklöf-4/+3
2020-04-27vt: action_utf8_print: idx is cleared in action_clear()Daniel Eklöf-3/+0
2020-04-27vt: utf8-*-entry: idx is cleared in action_clear()Daniel Eklöf-3/+3
2020-04-27term: remove unneeded utf8.left memberDaniel Eklöf-15/+0
2020-04-27utf8: add support for unicode combining charactersDaniel Eklöf-2/+54
2020-04-16grid: move 'cursor' state from terminal to gridDaniel Eklöf-8/+8
2020-04-13mbstate: fix compile warning on systems where mbstate_t isn't an integralDaniel Eklöf-1/+1
2020-03-16alt-screen: use a custom 'saved' cursor when switching to alt screenDaniel Eklöf-1/+1
2020-02-10vt: tag cells that were form-feed:ed, to allow correct text reflowDaniel Eklöf-2/+2
2020-02-01vt: ensure we never step outside our parameter and sub-parameter arraysDaniel Eklöf-6/+70
2020-02-01vt: collect (intermediate): log a warning if user supplied more than two intermediatesDaniel Eklöf-1/+1
2020-02-01vt: collect (intermediate): log _which_ character we collectedDaniel Eklöf-1/+1
2020-01-25vt: bug: state machine: csi entry: handle 0x3a/0x3b correctlyDaniel Eklöf-1/+1
2020-01-23vt: bug: fix check for error from mbrtowc()Daniel Eklöf-1/+4
2020-01-20term: factor out character printing to new function term_print()Daniel Eklöf-90/+4
2020-01-12dcs: initial handling of DCS in generalDaniel Eklöf-0/+4
2019-12-20Revert "vt: refactor"Daniel Eklöf-208/+201
2019-12-20vt: refactorDaniel Eklöf-201/+208
2019-12-20vt: visually compact the switch tablesDaniel Eklöf-271/+271
2019-12-20vt: remove enum action; add separate functions for each action insteadDaniel Eklöf-524/+491
2019-12-20vt: remove debug assertDaniel Eklöf-1/+0
2019-12-20vt: use a pointer that we increment, instead of indexingDaniel Eklöf-21/+21
2019-12-20vt: use break, not continueDaniel Eklöf-17/+17