-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
rustlings watch
Should clear the shell.
#146
Labels
Comments
komaeda
added
A-source
Area: CLI source
C-feature-request
Category: Feature Request
labels
Apr 27, 2019
WofWca
added a commit
to WofWca/rustlings
that referenced
this issue
Nov 9, 2019
ppp3
pushed a commit
to ppp3/rustlings
that referenced
this issue
May 23, 2022
…=fmoko watch: clears terminal before entering loop Fixes rust-lang#146 If someone is sliding in and out of "watch" mode, it can make it hard to tell which error messages are still relevant. This patch resolves that by clearing the terminal entirely before entering watch's loop. Note that the escape character is chosen for compatibility reasons, because different shells/terminals can change which commands they accept or have installed, betting on what other commands are in use to collect data seems risky, and just expecting them to implement ANSI escape code sequences is more reliable. This seems especially true since Windows is seeking more UNIX compatibility in its terminals going forward, even though it doesn't implement the POSIX standard per se.
ppp3
pushed a commit
to ppp3/rustlings
that referenced
this issue
May 23, 2022
ppp3
pushed a commit
to ppp3/rustlings
that referenced
this issue
May 23, 2022
improvement(watch): clear screen before each `verify()` Closes rust-lang#146 It seems to me that rust-lang#227 wasn't really fixing the issue.
dmoore04
pushed a commit
to dmoore04/rustlings
that referenced
this issue
Sep 11, 2022
…=fmoko watch: clears terminal before entering loop Fixes rust-lang#146 If someone is sliding in and out of "watch" mode, it can make it hard to tell which error messages are still relevant. This patch resolves that by clearing the terminal entirely before entering watch's loop. Note that the escape character is chosen for compatibility reasons, because different shells/terminals can change which commands they accept or have installed, betting on what other commands are in use to collect data seems risky, and just expecting them to implement ANSI escape code sequences is more reliable. This seems especially true since Windows is seeking more UNIX compatibility in its terminals going forward, even though it doesn't implement the POSIX standard per se.
dmoore04
pushed a commit
to dmoore04/rustlings
that referenced
this issue
Sep 11, 2022
dmoore04
pushed a commit
to dmoore04/rustlings
that referenced
this issue
Sep 11, 2022
improvement(watch): clear screen before each `verify()` Closes rust-lang#146 It seems to me that rust-lang#227 wasn't really fixing the issue.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hey,
First, thank you for this amazing project, learnt a lot at a really high pace with those exercises.
However I used the
rustlings watch
functionality during my training, and I feel like it could use aclear
in the shell to make it easier to see the new results.I often found myself lost in scrolling between old output and new ones.
Again, thanks for your amazing job !
The text was updated successfully, but these errors were encountered: