summaryrefslogtreecommitdiffstats
path: root/src/intrfn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-28 09:12:38 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-28 09:12:38 +0200
commit02e3edf762d05ec4aacb348eb550f35ee1558a9f (patch)
tree5587b7e8c42eb60cd59a1db7823a46682ea84bef /src/intrfn.c
parent87a42aeb971f0be3285425f2140a1ed19c387302 (diff)
Fix to deal with ncurses 5.8 API violation, newwin(0,0,0,0) doesn't create a new full-screen window anymore.
Diffstat (limited to 'src/intrfn.c')
-rw-r--r--src/intrfn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index 227ad12..2dfd8fe 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -569,7 +569,7 @@ unsigned long long int ask_number(const unsigned long long int val_cur, const un
void dump_ncurses(const void *nom_dump, unsigned int lng)
{
- WINDOW *window=newwin(0,0,0,0); /* full screen */
+ WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
keypad(window, TRUE); /* Need it to get arrow key */
aff_copy(window);
dump(window, nom_dump, lng);
@@ -1001,7 +1001,7 @@ int ask_confirmation(const char*_format, ...)
{
va_list ap;
int res;
- WINDOW *window=newwin(0,0,0,0); /* full screen */
+ WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
aff_copy(window);
va_start(ap,_format);
vaff_txt(4, window, _format, ap);
@@ -1017,7 +1017,7 @@ int ask_confirmation(const char*_format, ...)
void not_implemented(const char *msg)
{
- WINDOW *window=newwin(0,0,0,0); /* full screen */
+ WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
aff_copy(window);
wmove(window,7,0);
wprintw(window,"Function %s not implemented",msg);
@@ -1399,7 +1399,7 @@ void display_message(const char*msg)
{ 'Q', "Ok", "" },
{ 0, NULL, NULL }
};
- WINDOW *window=newwin(0,0,0,0); /* full screen */
+ WINDOW *window=newwin(LINES, COLS, 0, 0); /* full screen */
log_info("%s",msg);
aff_copy(window);
mvwaddstr(window,5,0,msg);