Console differences: Win7 vs. Win10

May 20, 2008
9,708
67
Syracuse, NY, USA
I have a plugin command SCROLL. The command SCROLL vp (vertical/previous) does this.
Code:
SendMessage(hWndConsole, WM_VSCROLL, MAKEWPARAM(SB_PAGEUP, 0), NULL);
Consider this command line, issued when the prompt is at the bottom of the console window.
Code:
CLS & SCROLL vp
In Win7, the net result is that the prompt is in the same place (window bottom) and the output, now missing a page, has been scrolled down to just above it.

In Win10, the net result is the same as if I had done only CLS; that is, the prompt is at the top of the window (with the old output above and missing a page).

What's the difference and how can I get the Win7 behavior in Win10?

Thanks!
 
May 20, 2008
9,708
67
Syracuse, NY, USA
I should add:
1. Win7 is 32-bit and Win10 is 64-bit
2. In Win10, "CLS & SCROLL vp & delay 2" shows that the scrolling does happen but it's undone when the prompt is issued.
 
May 20, 2008
9,708
67
Syracuse, NY, USA
The difference has nothing to do with the SCROLL plugin. It can be seen by issuing
Code:
CLS & delay 10
and, during the delay, manually scrolling to the previous page. On Win7/32 it stays scrolled when the prompt is issued; on Win10/64 it doesn't.