diff options
author | Manuel Argüelles <manuel.arguelles@gmail.com> | 2013-08-21 16:19:35 -0500 |
---|---|---|
committer | Manuel Argüelles <manuel.arguelles@gmail.com> | 2013-08-21 16:19:35 -0500 |
commit | 93789396b16e0eaef7b0d540b2ff2a39b5a315ec (patch) | |
tree | 9749d56cf218408017c8341b1c7f28a1c3bb55a4 /testing/toxic/friendlist.c | |
parent | d840e8a7430616bf96c164446f672d23b06cdfef (diff) |
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.
Diffstat (limited to 'testing/toxic/friendlist.c')
-rw-r--r-- | testing/toxic/friendlist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/toxic/friendlist.c b/testing/toxic/friendlist.c index 2e46f124..72b1da9d 100644 --- a/testing/toxic/friendlist.c +++ b/testing/toxic/friendlist.c | |||
@@ -2,7 +2,6 @@ | |||
2 | * Toxic -- Tox Curses Client | 2 | * Toxic -- Tox Curses Client |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #include <curses.h> | ||
6 | #include <string.h> | 5 | #include <string.h> |
7 | #include <stdint.h> | 6 | #include <stdint.h> |
8 | #include <ctype.h> | 7 | #include <ctype.h> |
@@ -84,7 +83,7 @@ int friendlist_onFriendAdded(Messenger *m, int num) | |||
84 | return 0; | 83 | return 0; |
85 | } | 84 | } |
86 | 85 | ||
87 | static void friendlist_onKey(ToxWindow *self, Messenger *m, int key) | 86 | static void friendlist_onKey(ToxWindow *self, Messenger *m, wint_t key) |
88 | { | 87 | { |
89 | if (key == KEY_UP) { | 88 | if (key == KEY_UP) { |
90 | if (--num_selected < 0) | 89 | if (--num_selected < 0) |