Skip to content

Allow setting a custom function to compute grapheme cluster width - #130

Open
NikitaIvanovV wants to merge 1 commit into
termbox:masterfrom
NikitaIvanovV:custom-cluster-width
Open

Allow setting a custom function to compute grapheme cluster width#130
NikitaIvanovV wants to merge 1 commit into
termbox:masterfrom
NikitaIvanovV:custom-cluster-width

Conversation

@NikitaIvanovV

@NikitaIvanovV NikitaIvanovV commented Feb 19, 2026

Copy link
Copy Markdown

Example usage:

#include "grapheme.h"
#define tb_cluster_width grapheme_next_character_break
#include "termbox2.h"

I've added TB_CUSTOM_CLUSTER_WIDTH macro to supress unused function warning (I have it set up in a project I've tested this change in).

@NikitaIvanovV
NikitaIvanovV marked this pull request as ready for review February 19, 2026 18:13
@adsr

adsr commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Ack-ing your PR. Haven't had a chance to review yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants