aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-01-26 06:33:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-02-06 06:45:20 +0000
commitd3f692990ef66f550bb3a0ade2e84107cfbeca47 (patch)
tree3d39c37531cec51d464a06a0dedbdc40d7973760 /osc.c
parentosc: wip: kitty text size protocol (diff)
term+vt: refactor: move "utf8" char processing to term_process_and_print_non_ascii()
This function "prints" any non-ascii character (i.e. any character that ends up in the action_utf8_print() function in vt.c) to the grid. This includes grapheme cluster processing etc. action_utf8_print() now simply calls this function. This allows us to re-use the same functionality from other places (like the text-sizing protocol).
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/osc.c b/osc.c
index 6d8bb40c..49bdba67 100644
--- a/osc.c
+++ b/osc.c
@@ -1207,7 +1207,10 @@ kitty_text_size(struct terminal *term, char *string)
free(wchars);
}
- term_print(term, CELL_COMB_CHARS_LO + composed->key, composed->forced_width > 0 ? composed->forced_width : composed->width);
+ term_print(
+ term, CELL_COMB_CHARS_LO + composed->key,
+ composed->forced_width > 0 ? composed->forced_width : composed->width,
+ false);
}
void