From a1aa7506690bc175e857c3af1e243b95917a5553 Mon Sep 17 00:00:00 2001 From: phyto Date: Thu, 24 Jan 2019 01:20:39 +0100 Subject: [PATCH] fix the 'message' function --- viz/curses/ecran.c | 2 +- viz/curses/t.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/viz/curses/ecran.c b/viz/curses/ecran.c index 43ba848..e813791 100644 --- a/viz/curses/ecran.c +++ b/viz/curses/ecran.c @@ -15,7 +15,7 @@ int verbosity; int message(char *txt) { standout(); -mvaddstr(LINES, 2, txt); +mvaddstr(LINES-1, 2, txt); standend(); refresh(); return 0; diff --git a/viz/curses/t.c b/viz/curses/t.c index 277fdb4..551db8b 100644 --- a/viz/curses/t.c +++ b/viz/curses/t.c @@ -54,8 +54,9 @@ water = open_waterfall("premier essai", 0); for (loop=0; loop