summaryrefslogtreecommitdiff
path: root/testing/toxic/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r--testing/toxic/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index e5525e94..12b529fc 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -2,6 +2,7 @@
2 * Toxic -- Tox Curses Client 2 * Toxic -- Tox Curses Client
3 */ 3 */
4 4
5#define _XOPEN_SOURCE_EXTENDED
5#include <curses.h> 6#include <curses.h>
6#include <errno.h> 7#include <errno.h>
7#include <stdio.h> 8#include <stdio.h>
@@ -9,6 +10,7 @@
9#include <stdbool.h> 10#include <stdbool.h>
10#include <stdint.h> 11#include <stdint.h>
11#include <signal.h> 12#include <signal.h>
13#include <locale.h>
12 14
13#ifdef _win32 15#ifdef _win32
14#include <direct.h> 16#include <direct.h>
@@ -40,6 +42,7 @@ static void init_term()
40{ 42{
41 /* Setup terminal */ 43 /* Setup terminal */
42 signal(SIGWINCH, on_window_resize); 44 signal(SIGWINCH, on_window_resize);
45 setlocale(LC_ALL, "");
43 initscr(); 46 initscr();
44 cbreak(); 47 cbreak();
45 keypad(stdscr, 1); 48 keypad(stdscr, 1);