1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 16:06:35 +01:00

Merge pull request #512 from manuel-arguelles/toxic_unicode

Add wide char support in toxic (issue #440)
This commit is contained in:
irungentoo
2013-08-21 16:08:10 -07:00
9 changed files with 70 additions and 48 deletions

View File

@@ -5,7 +5,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <curses.h>
#include "../../core/Messenger.h"
#include "../../core/network.h"
@@ -434,7 +433,7 @@ static void execute(ToxWindow *self, Messenger *m, char *u_cmd)
wprintw(self->window, "Invalid command.\n");
}
static void prompt_onKey(ToxWindow *self, Messenger *m, int key)
static void prompt_onKey(ToxWindow *self, Messenger *m, wint_t key)
{
/* Add printable characters to line */
if (isprint(key)) {