-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop scrolling to the bottom while echoing something if I am trying to scroll up #318
Comments
Hi, |
There is no Scroll lock key on many keyboard these days. Beside I tried On-Screen Keyboard. Scroll lock doesn't seems to be doing what I am suggesting. When something is echoing, it always try to jump on last line, even if I try to scroll up |
Yes, you're right.
Now, the |
@rhymdsadeelf There are some possible improvements:
What do you think about these improvements? |
Sounds perfect to me :) |
Dear @cbucher actually don't bother with the settings-checkbox - really that behavior would be just fine for the default. |
In the above events, I would wait for the user to [Mouse Up] to detect if scroll needs enable/disable, so that visiting last line while dragging scrollbar does not disable scrollock. An issue is that since the bottom of scroll-buffer is not where the last line has been printed but further down the window, depending on the buffer-lines set. So it should be kind of difficult to locate where the last line is, and maybe the user has a hard time to disable the scroll-lock with the scrollbar, no? Another feature common among programs implementing this auto-scroll-lock functionality is to have a notification icon signalling when new input has been printed at the bottom. |
ConsoleZ reads the console buffer. When Windows console is in "mark" state (scroll-lock), console application cannot output text (execution is blocked in output text functions until "mark" state is disabled). Actually the console hook reads the text located in screen buffer window. This window automatically follows the cursor. When we scroll, we modify the position of this window (SetConsoleWindowInfo). But every time the cursor position changes, the window returns to the cursor position. |
+1 |
Try echoing the content of a very big file. The scroll bar keeps scrolling to the button to the latest line, even if you try to scroll up.
Many programs stop trying to continue to scroll to the latest line if user is trying to scroll to an above line to read something.
The text was updated successfully, but these errors were encountered: