aboutsummaryrefslogtreecommitdiff
path: root/vt.c (unfollow)
Commit message (Expand)AuthorLines
2025-03-18vt: utf8: insert a REPLACEMENT CHARACTER when an invalid UTF-8 sequence is detectedDaniel Eklöf-6/+6
2025-03-18vt: utf8: don't discard current byte when an invalid UTF-8 sequence is detectedDaniel Eklöf-6/+6
2025-02-06term+vt: refactor: move "utf8" char processing to term_process_and_print_non_ascii()Daniel Eklöf-250/+1
2025-02-06composed: refactor: break out lookup with collision detectionDaniel Eklöf-51/+13
2025-02-06composed: re-factor: break out key calculation from vt.cDaniel Eklöf-22/+2
2025-02-06term: insert-mode: handle combining characters correctlyDaniel Eklöf-1/+3
2025-01-18vt: combining chars: ensure 'key' is within rangeDaniel Eklöf-0/+2
2024-11-02vt: don't call fcft_precompose() if font is NULLDaniel Eklöf-3/+5
2024-08-02Remove a number of unused includesDaniel Eklöf-1/+0
2024-06-26term: performance: use a bitfield to track which ascii printer to useDaniel Eklöf-0/+12
2024-06-25vt: unittest: verify emoji_vs list is sortedDaniel Eklöf-0/+14
2024-06-25vt: only apply VS-15/16 to valid sequencesDaniel Eklöf-5/+39
2024-06-25vt: don't ignore VS-15 (text presentation)Daniel Eklöf-3/+4
2024-03-07vt: DECALN: erase sixels, reset margins, home the cursorDaniel Eklöf-0/+8
2024-03-07vt: update DECALN to use term_fill()Daniel Eklöf-9/+3
2024-02-16vt: ignore VS16 (U+FE0F) when grapheme clustering is disabledDaniel Eklöf-1/+7
2024-02-15vt: VS16 - variation selector 16 (emoji representation) should only affect emojisDaniel Eklöf-2/+8
2024-02-06Don't use fancy Unicode quotes, stick to ASCIIDaniel Eklöf-10/+10
2023-09-25csi: implement DECSET/DECRST/DECRQM 2027 - grapheme cluster processingDaniel Eklöf-1/+1
2023-08-07vt: fix ASAN UB warningDaniel Eklöf-1/+1
2023-08-05vt: fix ASAN UB warningDaniel Eklöf-1/+1
2023-07-22vt: detect and ignore invalid UTF-8 sequencesDaniel Eklöf-0/+21
2023-07-20vt: improve handling of HTSCismonX-8/+22
2023-06-16vt: split up action_param() to three separate functionsDaniel Eklöf-66/+69
2022-06-15vt: tag collision-count check with ‘unlikely’Daniel Eklöf-1/+1
2022-06-15vt: improve key calculation for compose sequencesDaniel Eklöf-4/+19
2022-06-15vt: prevent potential endless loop when finding a slot for a composed characterDaniel Eklöf-0/+14
2022-03-21vt: free OSC buffer after dispatch, if larger than 4KDaniel Eklöf-3/+12
2022-02-05fcft: adapt to API changes in fcft-3.xDaniel Eklöf-13/+14
2021-11-23config: add tweak.grapheme-width-method=maxDaniel Eklöf-0/+4
2021-10-20osc: use BEL terminator in OSC replies to BEL-terminated OSC queriesCraig Barnes-0/+1
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-358/+529
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