Browse Source

fix the 'message' function

master
phyto 3 years ago
parent
commit
a1aa750669
2 changed files with 4 additions and 3 deletions
  1. +1
    -1
      viz/curses/ecran.c
  2. +3
    -2
      viz/curses/t.c

+ 1
- 1
viz/curses/ecran.c 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;


+ 3
- 2
viz/curses/t.c 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++) {


Loading…
Cancel
Save