mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-01 13:36:46 +02:00
Make wide character support optional
Issue #514. FindCursesw modified to make it simpler. Wide character can be disable by passing NO_WIDECHAR=ON.
This commit is contained in:
committed by
Sergey 'Jin' Bostandzhyan
parent
30666d2deb
commit
1087bbb4ff
@ -234,7 +234,11 @@ void draw_active_window(Messenger *m)
|
||||
a->onDraw(a, m);
|
||||
|
||||
/* Handle input */
|
||||
#ifdef HAVE_WIDECHAR
|
||||
get_wch(&ch);
|
||||
#else
|
||||
ch = getch();
|
||||
#endif
|
||||
|
||||
if (ch == '\t' || ch == KEY_BTAB)
|
||||
set_next_window((int) ch);
|
||||
|
Reference in New Issue
Block a user