-
Notifications
You must be signed in to change notification settings - Fork 819
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
(v2) feat: ferocious renderer #1200
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Right now, we only have one experimental feature to use the new cell buffer as a default renderer. Use `TEA_EXPERIMENTAL=cellbuf` environment variable to enable the use of the cell buffer as the default renderer.
…hanges This implements the meat of the cell renderer. It performs rendering changes using a cell-based tracking. Changed cells are marked as dirty and only the changed cells are rendered to the terminal. This is more efficient than line rendering.
aymanbagabas
force-pushed
the
v2-renderer
branch
from
October 24, 2024 15:27
d81b438
to
a008bbf
Compare
We need to reset the cursor when at phantom cell i.e. outside the screen, otherwise, the cursor position will be out of sync.
aymanbagabas
force-pushed
the
v2-renderer
branch
from
October 28, 2024 17:07
8c449d6
to
7d137bf
Compare
* fix: cellrenderer: we need to repaint after clearing the screen * fix: cellrenderer: reset cursor when at phantom cell wip * feat: cellrenderer: support setting cursor position * fix: use x and y instead of row and column for CursorPositionMsg This means we're now 0-indexed, which is consistent with the rest of the library.
aymanbagabas
force-pushed
the
v2-renderer
branch
from
November 4, 2024 20:10
06e7be5
to
9f5cddf
Compare
meowgorithm
changed the title
(v2) feat: cell based renderer
(v2) feat: ferocious renderer
Nov 6, 2024
meowgorithm
force-pushed
the
v2-renderer
branch
from
November 6, 2024 18:30
db9131f
to
c66c815
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This implements a cell-based renderer instead of the existing line-based one. The cell-based renderer will be used whenThe cell-based renderer, now called The Ferocious Renderer, is enabled by default. To disable it setTEA_EXPERIMENTAL=cellbuf
is exported.TEA_EXPERIMENTAL=unferocious
.To trace the output of the program, you can export
TEA_TRACE=<filename>
andTEA_TRACE_OUTPUT=1
and/orTEA_TRACE_INPUT=1
to see the I/O of the program.Supersedes: #1132