mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-08 08:16:35 +01:00
Add wide char support in toxic (issue #440)
Set current locale, use of get_wch instead of getch for reading, use wctomb and friends to convert back from wchar_t, link with cursesw. Unicode support is only added to chat windows.
This commit is contained in:
@@ -11,7 +11,7 @@ static void printip(ipbuf buf, IP ip)
|
||||
sprintf((char *)buf, "%u.%u.%u.%u", ip.c[0], ip.c[1], ip.c[2], ip.c[3]);
|
||||
}
|
||||
|
||||
static void dhtstatus_onKey(ToxWindow *self, Messenger *m, int key)
|
||||
static void dhtstatus_onKey(ToxWindow *self, Messenger *m, wint_t key)
|
||||
{
|
||||
switch (key) {
|
||||
case KEY_UP:
|
||||
|
||||
Reference in New Issue
Block a user