summaryrefslogtreecommitdiff
path: root/testing/toxic/windows.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-08-21 16:08:10 -0700
committerirungentoo <irungentoo@gmail.com>2013-08-21 16:08:10 -0700
commitf249084772d40b54ec57c1d96943f2faeddbc7b3 (patch)
treeeb55ebda66822dbe5134e777e3c00a6d7745a8d2 /testing/toxic/windows.c
parenteec11fcc581f2d8684c444a534a4c1b98acee641 (diff)
parentd5e96fe67058a44426d15e0f24ab779bcbcdd8bb (diff)
Merge pull request #512 from manuel-arguelles/toxic_unicode
Add wide char support in toxic (issue #440)
Diffstat (limited to 'testing/toxic/windows.c')
-rw-r--r--testing/toxic/windows.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c
index 8fdf4e19..f50bdc2d 100644
--- a/testing/toxic/windows.c
+++ b/testing/toxic/windows.c
@@ -226,16 +226,18 @@ void draw_active_window(Messenger *m)
226{ 226{
227 227
228 ToxWindow *a = active_window; 228 ToxWindow *a = active_window;
229 wint_t ch = 0;
230
229 prepare_window(a->window); 231 prepare_window(a->window);
230 a->blink = false; 232 a->blink = false;
231 draw_bar(); 233 draw_bar();
232 a->onDraw(a, m); 234 a->onDraw(a, m);
233 235
234 /* Handle input */ 236 /* Handle input */
235 int ch = getch(); 237 get_wch(&ch);
236 238
237 if (ch == '\t' || ch == KEY_BTAB) 239 if (ch == '\t' || ch == KEY_BTAB)
238 set_next_window(ch); 240 set_next_window((int) ch);
239 else if (ch != ERR) 241 else if (ch != ERR)
240 a->onKey(a, m, ch); 242 a->onKey(a, m, ch);
241} 243}