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 --- terminal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 624efd5c..da873ae6 100644 --- a/terminal.h +++ b/terminal.h @@ -469,6 +469,7 @@ struct terminal { bool alt_screen:1; bool ime:1; bool app_sync_updates:1; + bool grapheme_shaping:1; bool sixel_display_mode:1; bool sixel_private_palette:1; @@ -718,6 +719,8 @@ struct terminal { char *foot_exe; char *cwd; + + bool grapheme_shaping; }; struct config; -- cgit v1.3