vtgl

terminal emulator implemented in OpenGL
git clone anongit@rnpnr.xyz:vtgl.git
Log | Files | Refs | Feed | LICENSE

Commit: f72da6db94b19d477f7939dba75f1fb7730dc251
Parent: e552852145827c5f8bedd5b4d0405259f7cc93d7
Author: Randy Palamar
Date:   Fri, 30 Aug 2024 05:42:42 -0600

encode the codepoint from glfw to utf8

Unfortunately IME support in GLFW is broken so I may need to write
my own window code sooner than expected.

Diffstat:
Mvtgl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vtgl.c b/vtgl.c @@ -712,7 +712,7 @@ char_callback(GLFWwindow *win, u32 codepoint) t->scroll_offset = 0; t->gl.flags |= NEEDS_FULL_REFILL; } - os_child_put_char(t->child, codepoint); + os_child_put_s8(t->child, utf8_encode(codepoint)); } static void