diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2013-06-18 21:49:56 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2013-06-19 19:29:04 +0100 |
| commit | a642026e7c2c839e5f080b30b21808049b8b0f55 (patch) | |
| tree | d8af5c83274e3bcd4931f86633752da7d971f3db /src | |
| parent | 3e9439ac9f9f629fc18ec4c67a17984ec7b9a61a (diff) | |
more portable use of ncurses
Diffstat (limited to 'src')
| -rw-r--r-- | src/ncurses.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ncurses.cc b/src/ncurses.cc index 7b423fac..420d8d25 100644 --- a/src/ncurses.cc +++ b/src/ncurses.cc @@ -7,7 +7,10 @@ #include <map> -#include <ncurses.h> +#define NCURSES_OPAQUE 0 +#define NCURSES_INTERNALS + +#include <ncursesw/ncurses.h> #include <signal.h> #include <termios.h> #include <sys/ioctl.h> @@ -151,7 +154,7 @@ NCursesUI::NCursesUI() curs_set(0); start_color(); use_default_colors(); - ESCDELAY=25; + set_escdelay(25); signal(SIGWINCH, on_term_resize); signal(SIGINT, on_sigint); |
