in reply to Top like display with Curses
refresh is where the screen is actually changed. erase and all the other drawing commands just change an in-memory copy of the screen.use Curses; initscr(); while (1) { erase(); ...draw new screen using addstr, etc.... refresh(); sleep(2); } endwin();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Top like display with Curses
by mhearse (Chaplain) on May 21, 2008 at 18:19 UTC |