fix the 'message' function

This commit is contained in:
phyto 2019-01-24 01:20:39 +01:00
parent 2f5617d3b4
commit a1aa750669
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ int verbosity;
int message(char *txt)
{
standout();
mvaddstr(LINES, 2, txt);
mvaddstr(LINES-1, 2, txt);
standend();
refresh();
return 0;

View File

@ -54,8 +54,9 @@ water = open_waterfall("premier essai", 0);
for (loop=0; loop<nbl; loop++) {
sprintf(line, "%06X %04X", loop, rand()&0xffff);
mvwaddstr(stdscr, LINES-1, 1, line);
sprintf(line, " %06X %04X ", loop, rand()&0xffff);
message(line);
wrefresh(stdscr);
for (foo=0; foo<4; foo++) {