-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Is it possible to limit the terminal not to go over a single page? #6935
Comments
Well, I'd probably start writing code to clamp all your calls to Another thing you could do, which is common for applications which are "painting the entire viewport" (for things like You can see a sample of using the alt buffer in a console app here. You'll need to enable You should note that the alt buffer doesn't work exactly right in the Windows Terminal quite yet (see #381, #3492 and others), but it'll work just fine in the vintage console window ( |
So it looks like this alternative buffer is exactly what I need - but I also need it in Windows Terminal because I depend on the Unicode support. I guess for now the only thing I can do is wait. |
You can definitely still use the alt buffer currently in the Windows Terminal, there'll just be slight bugs in our implementation. Heck, you can use Currently in the Windows Terminal, your cursor positioning will still be clamped to the size of the viewport, it's just, we'll leave the output in the main buffer for now. I'd say go ahead and start prototyping with that now and keep an eye on the issues I've linked previously |
@zadjii-msft The alternative buffer isn't locked to the viewpoint - is this an issue? I was able to restrict the viewpoint by commenting some code but I think it would be better is we can write this on stone. Alternatively we could implement a |
Sorry for the incredibly delayed response. You're right that the alt buffer in the Terminal currently isn't locked to the viewport. That's something that'll need #381 to actually be finished to fix. I'd rather not implement another workaround - let's just focus on fixing the real root cause 😄 |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I have a code that uses
SetConsoleCursorPosition
to set a position on the screen and write to it. However sometimes it goes over the window buffer and the terminal scrolls down. Is it possible to restrict this and limit the cursor at the current window.If it's not I would be grateful if you at least point me in the right direction. I've been tinkering with the source code - limiting cursor positions and scrolls all day (both in my application and lately mostly at the terminal source).
The text was updated successfully, but these errors were encountered: