I wrote this function to deal with a need for capturing the console window (not buffer) resize event.
Called from the right place in your program, the window resize event can be captured within...