gotestyourself / gotestsum

'go test' runner with output optimized for humans, JUnit XML for CI integration, and a summary of the test results.
Apache License 2.0
2.03k stars 119 forks source link

dots-v2: hide cursor during output #354

Closed howardjohn closed 1 year ago

howardjohn commented 1 year ago

Contributes to https://github.com/gotestyourself/gotestsum/issues/352

Currently, as the new screen is written the cursor jumps around the terminal. This hides it, writes everything else, then returns it.

Prior art: https://github.com/docker/compose/blob/80856eacafcf96d6f27e74c07e42386fe662f8ef/pkg/progress/tty.go#L160-L162