diff options
Diffstat (limited to 'termbox/termbox.c')
-rw-r--r-- | termbox/termbox.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/termbox/termbox.c b/termbox/termbox.c index eed9681d..ee10cd49 100644 --- a/termbox/termbox.c +++ b/termbox/termbox.c @@ -427,6 +427,14 @@ static void send_char(int x, int y, uint32_t c) bytebuffer_puts(&output_buffer, buf); } +const char* to_unicode(uint32_t c) +{ + static char buf[7]; + int bw = tb_utf8_unicode_to_char(buf, c); + buf[bw] = '\0'; + return buf; +} + static void send_clear(void) { send_attr(foreground, background); |