Skip to content
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

[tui] scroll infra #366

Open
nazmulidris opened this issue Nov 15, 2024 · 0 comments
Open

[tui] scroll infra #366

nazmulidris opened this issue Nov 15, 2024 · 0 comments

Comments

@nazmulidris
Copy link
Member

Implement scroll view or component. Currently each component is responsible for its own scrolling which isn't great. Also figure out how this works with OffscreenBuffer, if that can help radically simplify things.

Additionally, the issue of scroll view / pane / component needs to be addressed here as well. Currently scrolling is handled per component, which is awful, unergonomic, and error prone. It would be better if the scrolling logic could be abstracted elsewhere and the mental model of having a larger canvas, and a smaller viewport looking into it, might end up being so much easier to implement as well.

The terminal_async Readline enables word wrap and thus becomes a multiline editor. However, in a TUI context, this might be undesirable. So there's a challenge here to figure out how to implement scrolling using the mechanism (outlined above) that can be used by Readline as well.

This is a big topic that's needed attention for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant