razterizer / Termin8or

A slimmed down curses-like header-only library. Good for terminal-based games and such.
MIT License
2 stars 0 forks source link

Still problems with frame refresh on WSL Ubuntu #20

Open razterizer opened 5 months ago

razterizer commented 5 months ago

Image

Here you can see that:

  1. The terminal is not properly cleared.
  2. The final row gets duplicated below it.

I don't know the reason for the second issue, so therefore it is not so easy to fix, but the first issue can be solved by adding the following code in the init() function of GameEngine:

#ifndef __APPLE__
#ifndef __WIN32
std::system("clear");
#endif
#endif
razterizer commented 5 months ago

For issue (1), I would start looking in clear_screen() in Screen.h and then GameEngine.h.

razterizer commented 5 months ago

It might be a WSL Ubuntu thing.