aboutsummaryrefslogtreecommitdiff
path: root/vt.c (follow)
Commit message (Expand)AuthorAgeLines
* vt: utf8: insert a REPLACEMENT CHARACTER when an invalid UTF-8 sequence is detectedDaniel Eklöf2025-03-18-6/+6
* vt: utf8: don't discard current byte when an invalid UTF-8 sequence is detectedDaniel Eklöf2025-03-18-6/+6
* term+vt: refactor: move "utf8" char processing to term_process_and_print_non_ascii()Daniel Eklöf2025-02-06-250/+1
* composed: refactor: break out lookup with collision detectionDaniel Eklöf2025-02-06-51/+13
* composed: re-factor: break out key calculation from vt.cDaniel Eklöf2025-02-06-22/+2
* term: insert-mode: handle combining characters correctlyDaniel Eklöf2025-02-06-1/+3
* vt: combining chars: ensure 'key' is within rangeDaniel Eklöf2025-01-18-0/+2
* vt: don't call fcft_precompose() if font is NULLDaniel Eklöf2024-11-02-3/+5
* Remove a number of unused includesDaniel Eklöf2024-08-02-1/+0
* term: performance: use a bitfield to track which ascii printer to useDaniel Eklöf2024-06-26-0/+12
* vt: unittest: verify emoji_vs list is sortedDaniel Eklöf2024-06-25-0/+14
* vt: only apply VS-15/16 to valid sequencesDaniel Eklöf2024-06-25-5/+39
* vt: don't ignore VS-15 (text presentation)Daniel Eklöf2024-06-25-3/+4
* vt: DECALN: erase sixels, reset margins, home the cursorDaniel Eklöf2024-03-07-0/+8
* vt: update DECALN to use term_fill()Daniel Eklöf2024-03-07-9/+3
* vt: ignore VS16 (U+FE0F) when grapheme clustering is disabledDaniel Eklöf2024-02-16-1/+7
* vt: VS16 - variation selector 16 (emoji representation) should only affect emojisDaniel Eklöf2024-02-15-2/+8
* Don't use fancy Unicode quotes, stick to ASCIIDaniel Eklöf2024-02-06-10/+10
* csi: implement DECSET/DECRST/DECRQM 2027 - grapheme cluster processingDaniel Eklöf2023-09-25-1/+1
* vt: fix ASAN UB warningDaniel Eklöf2023-08-05-1/+1
* vt: detect and ignore invalid UTF-8 sequencesDaniel Eklöf2023-07-22-0/+21
* vt: improve handling of HTSCismonX2023-07-20-8/+22
* vt: split up action_param() to three separate functionsDaniel Eklöf2023-06-16-66/+69
* vt: tag collision-count check with ‘unlikely’Daniel Eklöf2022-06-15-1/+1
* vt: improve key calculation for compose sequencesDaniel Eklöf2022-06-15-4/+19
* vt: prevent potential endless loop when finding a slot for a composed characterDaniel Eklöf2022-06-15-0/+14
* vt: free OSC buffer after dispatch, if larger than 4KDaniel Eklöf2022-03-21-3/+12
* fcft: adapt to API changes in fcft-3.xDaniel Eklöf2022-02-05-13/+14
* config: add tweak.grapheme-width-method=maxDaniel Eklöf2021-11-23-0/+4
* osc: use BEL terminator in OSC replies to BEL-terminated OSC queriesCraig Barnes2021-10-20-0/+1
* vt: add some unit tests for action_collect()Craig Barnes2021-07-02-0/+23
* config: rename at-most-2 (value for grapheme-width-method) to double-widthDaniel Eklöf2021-07-01-1/+1
* config: add tweak.grapheme-width-method=wcswidth|at-most-2Daniel Eklöf2021-07-01-5/+14
* vt: limit grapheme width to 2 cellsDaniel Eklöf2021-07-01-5/+3
* vt: don’t reset utf8proc grapheme state when we’re not at a grapheme breakDaniel Eklöf2021-06-25-5/+8
* vt: utf8: rotate instead of just shifting when updating compose keyDaniel Eklöf2021-06-24-4/+7
* vt: improved key hash algorithm -> reduces number of key collisionsDaniel Eklöf2021-06-24-3/+10
* composed: insert: require key to be uniqueDaniel Eklöf2021-06-24-3/+5
* vt: codespell: bumb -> bumpDaniel Eklöf2021-06-24-1/+1
* composed: store compose chains in a binary search treeDaniel Eklöf2021-06-24-38/+52
* vt: utf8: don’t scan *all* previous chainsDaniel Eklöf2021-06-24-1/+3
* vt: utf8: de-duplicate; jump to end of function to print to gridDaniel Eklöf2021-06-24-26/+25
* vt: utf8-print: don’t build a compose chain on a zero-width base characterDaniel Eklöf2021-06-24-87/+89
* vt: utf8-print: check base character before count when looking for existing compose chainDaniel Eklöf2021-06-24-2/+2
* vt: don’t call wcwidth() on all combining characters every time we addDaniel Eklöf2021-06-24-11/+7
* vt: presentation selectors may be anywhere in the clusterDaniel Eklöf2021-06-24-8/+10
* vt: don’t force cols=2 when we see an emoji variant selectorDaniel Eklöf2021-06-24-1/+3
* vt: cache grapheme cluster width in composed structDaniel Eklöf2021-06-24-4/+10
* wip: grapheme shapingDaniel Eklöf2021-06-24-108/+128
* Merge branch 'charset-shift-fixes'Craig Barnes2021-06-09-8/+18
|\
| * terminal: add 'charset_designator' enum to make code more self-documentingCraig Barnes2021-06-09-8/+8
| * vt: fix SS2/SS3 escape sequences to act correctly as single shiftsCraig Barnes2021-06-08-4/+2
| * vt: add support for LS2 and LS3 locking shiftsCraig Barnes2021-06-08-0/+12
* | vt: TAB: don’t print a ‘\t’ to the grid if the *current* cell isn’t emptyDaniel Eklöf2021-06-08-3/+4
* | vt: emit a tab character if all cells between cursor and tab stop are emptyDaniel Eklöf2021-06-08-3/+40
|/
* vt: fix buggy chains of ternary expressions in action_esc_dispatch()Craig Barnes2021-06-08-18/+9
* vt: \E#8: print ‘E’ using the default attributesDaniel Eklöf2021-06-07-1/+1
* vt: remove action_utf8_print(term, 0) calls from UTF-8 state handlersCraig Barnes2021-05-25-6/+6
* vt: remove partial support for 8-bit C1 control charsCraig Barnes2021-05-25-20/+6
* Merge branch 'reflow-performance'Daniel Eklöf2021-05-16-1/+1
|\
| * term: rename CELL_MULT_COL_SPACER -> CELL_SPACER, and change its definitionDaniel Eklöf2021-05-14-1/+1
* | Update `term->vt.state` for each iteration of vt_from_slave() loopCraig Barnes2021-05-15-3/+2
|/
* vt: make anywhere() function return `term->vt.state` by defaultCraig Barnes2021-05-13-14/+14
* vt: clean up handling of "anywhere" actionsCraig Barnes2021-05-13-201/+44
* term/vt: only do reverse-wrapping (‘bw’) on cub1Daniel Eklöf2021-04-08-2/+15
* term: runtime switch between a ‘fast’ and a ‘generic’ ASCII print functionDaniel Eklöf2021-03-16-16/+7
* vt: remove xassert(), that cannot be optimized out, from action_print()Daniel Eklöf2021-02-07-2/+0
* debug: rename assert() to xassert(), to avoid clashing with <assert.h>Craig Barnes2021-01-16-11/+11
* Print stack trace on assert() failure or when calling fatal_error()Craig Barnes2021-01-16-1/+1
* Merge branch 'decset-1047-and-1048'Daniel Eklöf2021-01-16-5/+1
|\
| * term/vt/csi: break out cursor save/restore to dedicated functionsDaniel Eklöf2021-01-15-5/+1
* | vt: document correct BS behavior, and why we do differentlyDaniel Eklöf2021-01-15-0/+12
|/
* Use wrappers from macros.h instead of bare GCC attributes/pragmasCraig Barnes2021-01-03-7/+2
* vt: codespell: ony -> onlyDaniel Eklöf2020-12-16-1/+1
* vt: don’t ignore extra private/intermediate charactersDaniel Eklöf2020-12-16-13/+27
* bell: optionally render margins in red when receiving BELDaniel Eklöf2020-10-08-2/+1
* vt: BS: *only* reset lcf if cursor is beyond right margin: don’t move cursorDaniel Eklöf2020-10-02-1/+4
* vt: hide pedantic warnings around the VT state machine's switch casesDaniel Eklöf2020-08-23-0/+9
* Fix spelling mistake in vt.cCraig Barnes2020-08-16-1/+1
* Convert most dynamic allocations to use functions from xmalloc.hCraig Barnes2020-08-08-1/+2
* vt: never call term_print() with a width <= 0Daniel Eklöf2020-07-16-1/+2
* vt: ignore 0x7f (DEL) in ground stateDaniel Eklöf2020-07-16-1/+4
* vt: utf8: handle multi-column spacer values correctly when combiningDaniel Eklöf2020-07-16-6/+3
* term: rename COMB_CHARS_LO,HI -> CELL_COMB_CHARS_LO,HIDaniel Eklöf2020-07-14-6/+6
* vt: change HT (horizontal tab) to *not* clear LCFDaniel Eklöf2020-07-14-0/+6
* term: rename term_formfeed() -> term_carriage_return()Daniel Eklöf2020-07-14-2/+3
* vt: implement C0::FF - processed in the same way as C0::LFDaniel Eklöf2020-07-14-0/+2
* vt: process C0::VT the same way we process C0::LFDaniel Eklöf2020-07-14-6/+3
* vt: sort C0's in the switch statement, and use escaped character possibleDaniel Eklöf2020-07-14-16/+16
* unicode combining: don't log overflow errors unless LOG_ENABLE_DBG == 1Daniel Eklöf2020-06-09-1/+2
* vt: utf8-print: check width == 0 first, when deciding whether to do combiningDaniel Eklöf2020-06-09-1/+1
* vt: initial version of UTF-8 decoding built-in into the VT parserDaniel Eklöf2020-06-07-33/+133
* vt: utf8: use mbtowc() instead of mbrtowc()Daniel Eklöf2020-05-31-8/+2
* vt: utf8: don't need one entry action for each UTF8 variantDaniel Eklöf2020-05-31-20/+6
* unicode-combine: simplify - remove -Dunicode-precompose optionDaniel Eklöf2020-05-10-2/+0
* unicode-precompose: use fcft's precompose functionalityDaniel Eklöf2020-05-09-36/+25
* unicode-combining: limit maximum number of allowed composed chainsDaniel Eklöf2020-05-03-5/+12
* unicode-combining: detect when we've reached the chain limitDaniel Eklöf2020-05-03-0/+14
* unicode-combining: store seen combining chains "globally" in the term structDaniel Eklöf2020-05-03-16/+43
* vt: use signed integers to correctly detect when we're doneDaniel Eklöf2020-05-02-2/+2