I have discovered at least with windows that you can detect if the console is open if a code page exists.
example:
If GetConsoleOutputCP_()
in certain rare situations this is useful to know, to avoid using other console commands and cause an error if one isn't open.
but is there a cross platform solution to test if your program has an open console?
IsConsoleOpen
Re: IsConsoleOpen
On Windows there is also GetConsoleWindow() (which needs to be imported manually).
No idea about other OSes.
No idea about other OSes.