Skip to content

Refactor: vterm buffer processing on different events #23

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

Open
zokrezyl opened this issue Jun 5, 2020 · 0 comments
Open

Refactor: vterm buffer processing on different events #23

zokrezyl opened this issue Jun 5, 2020 · 0 comments

Comments

@zokrezyl
Copy link
Owner

zokrezyl commented Jun 5, 2020

Present implementation, on each text change event:

  • we read the buffer content from vterm
  • we translate the char codes into positions into the texture
  • we render on OpenGL surface

Instead it should be:

  • we should have a fast (np) buffer for the active screen and the history
  • we update this buffer on events like:
    • on "damage": we re-read the buffer from vterm, make the table conversion and update our fast buffer
    • on moverect: we just scroll the buffer
    • on mouse_scroll callback, or moverect callback
    • on sb_push: maybe not even important as this case should be covered by moverect
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