-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
support scrolling on a per-ncplane basis #323
Comments
This is going to be pretty much necessary for proper implementation of #320, so moving it up to 1.3.0. |
I added |
We now move to the next line when scrolling is enabled. Still need to implement scrolling on the last row, but this ought be enough to implement #320. Making a new bug on the latter problem. |
Output to an ncplane ought be able to scroll. This will be pretty much necessary, for instance, to support spawning an external process and rendering the output to a plane.
The scrolling model will be that everything moves up one line when either:
When scrolling is enabled on a plane, its rectangular framebuffer is replaced with an array of array of cells, and an integer identifying which one is the topmost line at this moment. Perhaps we ought just always use this structure, and when scrolling is disabled, the integer will always be 0? I see no reason not to, hrmm.
Actually, we can still just use a rectangle for a single allocation, and the integer will just be scaled by the row length. Yessssssss, that's the right way to do it.
Rendering and output will both need to be updated to use this new integer.
The text was updated successfully, but these errors were encountered: