1
0
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:
Manuel Argüelles
2013-08-22 15:57:34 -05:00
committed by Sergey 'Jin' Bostandzhyan
parent 30666d2deb
commit 1087bbb4ff
4 changed files with 8 additions and 2 deletions

View File

@ -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);