in reply to How do I get my ascii tile code to refresh without looking weird
The simplest way would be to just clear screen and set the cursor to top-left before each redraw:
You may be able to find more efficient techniques by modifying only the parts of the screen that have changed.print "\x1b[2J\x1b[0;0H"; # erase screen, set cursor to top left
See also Term::Screen, Curses and lots of other stuff you can find on cpan searching for ANSI. and Term.
|
|---|