[try Beta version]
Not logged in

 
 
Refresh console without printing every time

Jan 18, 2019 at 11:00pm
Hi, I'm writing a little game. The "playground" is a matrix and player has to move trough it so I'm questioning if exist a way to refresh the console to visualize the player's moves on the matrix without printing it every time.
Thanks
Jan 18, 2019 at 11:08pm
Does there exist a way to refresh the console to visualize the player's moves on the matrix without printing it every time.


Yes - use a TUI library such as ncurses.
http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/
Jan 20, 2019 at 2:27pm
@mbozzi Thanks a lot for your answer.
Topic archived. No new replies allowed.