Earlier code was not clearing the screen fully and the fix for that is in first commit.
The other issue is more intricate, it was causing termbox to paint content in invisible portion of console.
This issue only happens when you launch termbox application when existing console buffer is scrolled down. See attached screenshot (#1) and (#2). With the fix, the problem goes away and console is painted correctly as we fix the window position by calling SetConsoleWindowInfo.
This PR fixes two bugs: