I have a small multithreaded console server, I have one thread writing the server status to the console (connected clients and so on) and another listeing the console for commands (kick, delete, add, etc)
My problem is that the output thread needs to update the console every second or so, and once the output thread updates the console anything writen there is lost as it is overwritten... How do I bypass this? Best fix would be not updating the last line and keep it to the commands, but i don't know how to accomplish that.
Other fix would be manual update but i'm trying to avoid that