Skip to content
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

Clear screen and scroll history #136

Open
petros opened this issue Aug 31, 2022 · 0 comments
Open

Clear screen and scroll history #136

petros opened this issue Aug 31, 2022 · 0 comments

Comments

@petros
Copy link

petros commented Aug 31, 2022

This is more of a feature request which I can try via a PR if I can get some confirmation that it makes sense and would be considered:

The clear: true option clears the terminal screen but not it's history. This means that despite cleaning the screen, it's not easy to scroll back to the beginning of the most recent test run. That's because the terminal remembers the whole history since the beginning of the session.

https://github.com/lpil/mix-test.watch/blob/345bf7d0df1bf0b6e6cce18db0ae3a36a306aaaf/lib/mix_test_watch/runner.ex#L32e

One possible approach could be to make it optional so that clear would actually run:

clear && printf '\e[3J'

I am not sure what's the equivalent for printf '\e[3J' using IO.ANSI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant