Skip to content

Removed screen flicker when entering TUI command screen #71

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

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

fritzrehde
Copy link
Owner

@fritzrehde fritzrehde commented Nov 5, 2023

Partially fixed #67.
When hiding watchbind's TUI in order for the child/command TUI to execute and draw its own TUI, we previously tore-down watchbind's entire TUI, leading the UI to return to the user's terminal for a split second before drawing the child's/command's TUI. Now, we don't completely unpaint watchbind's TUI and return to the user's terminal, and instead just let the child TUI draw over our (now blank) TUI.
Unfortunately, this "trick" only works when hiding watchbind's TUI and showing the child's TUI, but not when the child's TUI exits and we need to restore/show watchbind's TUI, because we don't control the child's TUI in any way. If we find a solution to the second problem at some point in the future, we'll create a new PR for that.

@fritzrehde fritzrehde added the enhancement New feature or request label Nov 5, 2023
@fritzrehde fritzrehde self-assigned this Nov 5, 2023
@fritzrehde fritzrehde force-pushed the refactor-terminal-manager branch from 0e6ecdb to a536ede Compare November 5, 2023 19:58
@fritzrehde fritzrehde marked this pull request as ready for review November 5, 2023 21:28
@fritzrehde fritzrehde merged commit d9ccefa into main Nov 5, 2023
@fritzrehde fritzrehde deleted the refactor-terminal-manager branch November 5, 2023 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow opening another TUI (e.g. text editor) temporarily before returning to watchbind
1 participant