Hi Team,
Ive been tinkering with console output..
1. I want to keep refreshing the console output, Is there a way to clear the STDOUT stream buffer?
2. Is there a way to change the default window settings at runtime in code?
3. How do you activate popups, or drop menus, or buttons?
A console has no access to the system GUI system or the menu option for the Command window. You could simulate using it by inserting values into Windows mouse buffer, but its very error prone.
You cant really change the window settings either programmatically...
Unfortunately there is no access to Windows CLS command either (would be a good one to add :) )
use CLEARSCREEN to flush the output.
You can't set the size. It's a system setting. You can just query it. (There might be some API to do so, but I'm unaware).
You can use the Win32 API for MessageBoxA to pop up messages.
Ahh thanks for the replies, very helpful.