First experiment with using Brick for TUI. #3349
Draft
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 is just a quick experiment with Brick to show that we can easily get a nice TUI in haskell for our CLI. Code is very nice I think, and library is very powerful and handles a lot of stuff out of the box (it is also cross-platform!).
As mentioned in the comments in the code, main thing that will be missing for us to use it for
wasp startis logic for replacing ansi control characters in the output received from the child processes withVtystyling, but that is basically one function/module that we can then reuse accross the whole TUI and LLM should be able to help us a lot to write it. We can even open source it namedbrick-ansi, I saw other people onbrickgithub asking for it.I will leave this draft here as a potential starting point. Whoever is implementing this, first read the Brick guide.