From 4eef001d5855b9b5afb59bbd3b92b3a2828fcca0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 20 Sep 2023 13:45:06 +0200 Subject: 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]: https://github.com/contour-terminal/terminal-unicode-core/blob/13fc5a8993a033ff10c1f3433d08cb618cde4ac2/spec/terminal-unicode-core.tex#L50-L53 --- vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vt.c') diff --git a/vt.c b/vt.c index f6e8b79b..0f7bfe63 100644 --- a/vt.c +++ b/vt.c @@ -657,7 +657,7 @@ static void action_utf8_print(struct terminal *term, char32_t wc) { int width = c32width(wc); - const bool grapheme_clustering = term->conf->tweak.grapheme_shaping; + const bool grapheme_clustering = term->grapheme_shaping; #if !defined(FOOT_GRAPHEME_CLUSTERING) xassert(!grapheme_clustering); -- cgit v1.3