Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ui): render ui to alternative screen (#8084)
### Description Changes our UI to render in the alternative screen (think `vim` or `less`) This provides a few benefits: - We can render to the entire terminal without worrying about over-allocating space and removing useful information from the screen. - Users won't need to scroll up at the end of a run to see the task logs - We no longer use `insert_before` for persisting task logs. This function panics if there isn't an available row to render to (#8072) or rendering terminal logs that have an area that exceeds `u16::MAX` (#7843). Instead our log persisting story is a "simple" `stdout.write_all()`. - Removes hacks added to avoid hitting #7843 We write the logs in a row-wise fasion as `vt100` attempts to optimize performance by using cursor moves to avoid necessary writes. This creates problems when printing multiple terminal screens as the cursor move coordinates will be incorrect. ### Testing Instructions https://github.com/vercel/turbo/assets/4131117/9746dcd3-188e-48fd-a52d-21d95d0e6e43 Closes TURBO-2979
- Loading branch information
1 parent
a3ca7ff
commit c58d619
Showing
12 changed files
with
268 additions
and
454 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.