1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-09 13:26:35 +01:00

Use widechars to display strings in the UI

This fixes a bug where printing a bunch of UTF8 chars with glyphs
that have a size > 1 would make the entire chat window disappear.
It also fixes an issue where said UTF8 chars would be truncated
and generally not display correctly.
This commit is contained in:
jfreegman
2022-01-27 15:45:56 -05:00
parent f6f41a510b
commit e122c5dbca
3 changed files with 84 additions and 45 deletions

View File

@@ -23,6 +23,10 @@
#ifndef TOXIC_H
#define TOXIC_H
#ifndef NCURSES_WIDECHAR
#define NCURSES_WIDECHAR 1
#endif
#ifndef TOXICVER
#define TOXICVER "NOVERS" /* Use the -D flag to set this */
#endif