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) int message(char *txt)
{ {
standout(); standout();
mvaddstr(LINES, 2, txt); mvaddstr(LINES-1, 2, txt);
standend(); standend();
refresh(); refresh();
return 0; return 0;

View File

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