What problem does this solve?
When the width of the terminal gets too small, formae rendering breaks. This manifests:
- in the formae logo banner, which gets wrapped around to the next line
- in the table for the status output (summary), which also wraps
Proposed solution
Open to any solutions here. The tablewriter library we use supports a MaxWidth. We could potentially handle theSIGWINCH (using os/signal) to detect whether the terminal size has changed. The golang.org/x/term package should give us the terminal's current width and height so we can then redraw accordingly.
We could potentially warp the banner in a table as well to defer truncating to the library. Open for any suggestions here.
What problem does this solve?
When the width of the terminal gets too small, formae rendering breaks. This manifests:
Proposed solution
Open to any solutions here. The tablewriter library we use supports a
MaxWidth. We could potentially handle theSIGWINCH(usingos/signal) to detect whether the terminal size has changed. Thegolang.org/x/termpackage should give us the terminal's current width and height so we can then redraw accordingly.We could potentially warp the banner in a table as well to defer truncating to the library. Open for any suggestions here.