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

Allow reading the front buffer? #130

Open
josharenson opened this issue Apr 9, 2020 · 0 comments
Open

Allow reading the front buffer? #130

josharenson opened this issue Apr 9, 2020 · 0 comments

Comments

@josharenson
Copy link

Feature request/idea: reading the front buffer

A function like tb_cell_buffer for the front buffer would be nice to have. I realize it comes with some amount of risk. If there is interest, I'd be happy to prototype something.

My use case is below, but I think this could be helpful in a more generic sense:

I've made a mini termbox based window manager of sorts and would like to implement some type of modal functionality. I'd like to be able to push the contents of the front buffer on a stack, show a modal, and then display the previous front buffer again after the modal is closed.

Since each section of my terminal is managed by an arbitrary number of window objects, it is impractical and inefficient to track their states manually.

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