diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-14 18:19:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-03-16 07:45:18 +0000 |
| commit | 60b3ccc64115fb7e4b303eb1b93ba16d10fff1b5 (patch) | |
| tree | 1c9559769b3006e573b6774d6adbe791138b9c85 /scripts | |
| parent | Merge branch 'term-print-assume-col-can-be-incremented' (diff) | |
term: runtime switch between a ‘fast’ and a ‘generic’ ASCII print function
term_print() is called whenever the client application “prints”
something to the grid. It is called for both ASCII and UTF-8
characters, and needs to handle sixels, insert mode and ASCII
vs. graphical charsets.
Since it’s on the hot path, this becomes unnecessarily slow.
This patch adds a “fast” version of term_print(), tailored for the
common case: ASCII characters in non-insert mode, without any sixels
and non-graphical charsets.
A new function, term_update_ascii_printer(), has been added, and must
be called whenever:
* The currently selected charset *index* changes
* The currently selected charset changes (from ASCII to graphical, or
vice verse)
* Sixels are added to the grid
* Sixels are removed from the grid
* Insert mode is enabled/disabled
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
