diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-22 14:10:09 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-22 14:10:09 -0700 |
commit | 4711cdb6c466042dd47b445ad6db9fbe9fc167c7 (patch) | |
tree | 3694127a3481ada2c8656a4b15c4cd2defec82d9 /testing/toxic/windows.c | |
parent | 7719a9ed5807aede732230ad30bc31f536a0c4ae (diff) | |
parent | 7ffa4017aaec8a06c6677686a6928e0e7c896f38 (diff) |
Merge pull request #515 from manuel-arguelles/unicode_optional
Make wide character support optional
Diffstat (limited to 'testing/toxic/windows.c')
-rw-r--r-- | testing/toxic/windows.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/toxic/windows.c b/testing/toxic/windows.c index f50bdc2d..7f547d0a 100644 --- a/testing/toxic/windows.c +++ b/testing/toxic/windows.c | |||
@@ -234,7 +234,11 @@ void draw_active_window(Messenger *m) | |||
234 | a->onDraw(a, m); | 234 | a->onDraw(a, m); |
235 | 235 | ||
236 | /* Handle input */ | 236 | /* Handle input */ |
237 | #ifdef HAVE_WIDECHAR | ||
237 | get_wch(&ch); | 238 | get_wch(&ch); |
239 | #else | ||
240 | ch = getch(); | ||
241 | #endif | ||
238 | 242 | ||
239 | if (ch == '\t' || ch == KEY_BTAB) | 243 | if (ch == '\t' || ch == KEY_BTAB) |
240 | set_next_window((int) ch); | 244 | set_next_window((int) ch); |