When a graphical application connects to the parent console with AttachConsole(ATTACH_PARENT_PROCESS)
and writes some output, it leaves the console with a blank line.
PS C:\>my_program.exe
some output
more output
Instead of leaving the console with a blank line, I want to reset the console prompt after exiting the application.
PS C:\>my_program.exe
some output
more output
PS C:\>
Is there a way to achieve this, and if yes how?