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

[feature request] add a mechanism to get a fixed number of rows as formatted content #12

Open
ethanpailes opened this issue Jul 27, 2023 · 0 comments

Comments

@ethanpailes
Copy link

Currently, you can very easily get the contents of the current screen to re-draw with the contents_formatted method, but I'm working on a tool where I would like to be able to render the current screen plus some extra scrollback contents. I tried doing this by re-sizing the screen, but it didn't seem to work as I had hoped. I found that by patching the vt100 crate to have a new method to render formatted contents with a different selector for the rows, I could get the results that I want.

I've posted the patch to my fork and am using it in my tool. Is this something you'd be willing to upstream?

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