Win32 API: retrieving scroll bar information #16351
-
How can I retrieve scroll bar information in Windows Terminal? GetScrollBarInfo is returning only STATE_SYSTEM_INVISIBLE for rgstate[0] |
Beta Was this translation helpful? Give feedback.
Answered by
zadjii-msft
Nov 22, 2023
Replies: 1 comment 2 replies
-
This will probably not work because Windows Terminal uses XAML for its internal UI elements. Even if it didn't, though, finding the correct set of scrollbars for the active pane inside the active tab is going to be a bit of a chore. What's your use case? Is there a way we could make that easier? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah. You probably want to use the alternate screen buffer. This is the thing that apps like
vim
,emacs
,tmux
et al use to temporarily create a "full screen" application in the terminal, then dismiss the buffer when they're done.The alt buffer will dismiss the scrollbars for you 😉