csi: implement DECSET/DECRST/DECRQM 2027 - grapheme cluster processing

This implements private mode 2027 - grapheme cluster processing, as
defined in the "Terminal Unicode Core"[1] specification.

Internally, we just flip the already existing option "grapheme
shaping". Since it's now runtime changeable, we need a copy of it in
the terminal struct, rather than referencing the conf object.

[1]: 13fc5a8993/spec/terminal-unicode-core.tex (L50-L53)
This commit is contained in:
Daniel Eklöf 2023-09-20 13:45:06 +02:00
parent 8a5f2915e9
commit 4eef001d58
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 21 additions and 1 deletions

View file

@ -58,6 +58,8 @@
* New key binding: `select-quote`. This key binding selects text
between quote characters, and falls back to selecting the entire
row ([#1364][1364]).
* Support for DECSET/DECRST/DECRQM 2027 (_Grapheme cluster
processing_).
[1077]: https://codeberg.org/dnkl/foot/issues/1077
[1364]: https://codeberg.org/dnkl/foot/issues/1364