From a642026e7c2c839e5f080b30b21808049b8b0f55 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 18 Jun 2013 21:49:56 +0200 Subject: [PATCH] more portable use of ncurses --- src/ncurses.cc | 7 +++++-- 1 file 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 -#include +#define NCURSES_OPAQUE 0 +#define NCURSES_INTERNALS + +#include #include #include #include @@ -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);