-
Notifications
You must be signed in to change notification settings - Fork 238
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
Changing the FontSize affects what is captured on Hide/Show #420
Comments
After thinking this through a bit more, I invoked the mighty htop and found, that while my machine is perfectly fine running the TUI itself with terminal fontsize set to 10, it is absolutely not fine rendering it in the headless chromium browser so I guess I'm just stuck for now. If anyone else comes across this issue, you now know where to look. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Changing the FontSize affects what is captured between Hide and Show blocks.
Setup
I have a TUI, built with ratatui, with a couple of different "scenes".
After running into an issue with flickering #88 , I set the
Framerate
to the same as the TUI's internal one: 4fps.So my settings are these:
The TUI has a startup scene that I want to ommit for this demo, so I hide the first couple of commands and leave ample time.
After typing
m
a fullscreen map should be rendered by the TUI, which I want to show.Typing
w
brings up a help menu that should be displayed until the .gif ends.Issue
With FontSize 10 it shows what should only be rendered during the
Hide
Section:With FontSize 16 it starts showing the map but not the help menu.
And finally with FontSize 24 I get to see parts of the help menu and it starts in the correct scene.
Ofc now the font is too big to fit anything.
I tried with multiple configurations of screens/ hiding & showing, sleep durations, framerates and setting the padding to 0, but I observed this behavior consistently.
I don't know what could be the cause of the issue here, but changing the
FontSize
had by far the biggest effect on the outcome.I can also provide further information if necessary.
The text was updated successfully, but these errors were encountered: