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 before re running a command. #65

Open
bubunyo opened this issue Sep 11, 2019 · 2 comments
Open

Clear screen before re running a command. #65

bubunyo opened this issue Sep 11, 2019 · 2 comments

Comments

@bubunyo
Copy link

bubunyo commented Sep 11, 2019

When the watched files in a folder changes, it runs the command without clearing the screen. It makes results from the latest run commands very dirty.

Can a simple clear screen command be invoked, before a new command is run?

@aslafy-z
Copy link

aslafy-z commented Apr 21, 2020

You can get this behavior by running the clear command before your own command, like below:

reflex -r '\.txt$' -- sh -c 'clear; run_my_command'

@oderwat
Copy link

oderwat commented Nov 21, 2020

I want to clear the screen and clear the scrollback buffer and use this for go server projects:

reflex -s -g '*.go' -- sh -c "printf '\033[2J\033[3J\033[1;1H' && make run"

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

3 participants