I'm creating a console application in C++, and for this the user is interacting with the window in different ways (for which I use ncurses). At the same time, I need some way to show system messages during debug (especially), but that would disrupt the user experience, so how to create a logging functionality that preferably prints to another window or something. How can I achieve this?
I'm compiling in the terminal, so I don't have a lot of fancy services of an IDE.
Edit: I'm using a Mac.