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 the screen on reload with --clear #195

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

9999years
Copy link
Member

@9999years 9999years commented Feb 26, 2024

It's possible to hack around this with lifecycle hooks:

ghciwatch \
  --before-startup-shell 'sh -c "clear >/dev/tty"' \
  --before-reload-shell 'sh -c "clear >/dev/tty"' \
  --before-restart-shell 'sh -c "clear >/dev/tty"'

But it's nice to have a baked option for it.

Copy link

linear bot commented Feb 26, 2024

@github-actions github-actions bot added the patch Bug fixes or non-functional changes label Feb 26, 2024
@9999years 9999years force-pushed the rebeccat/dux-1635-clear-the-screen-on-reload branch from bcc7d53 to 25064bd Compare February 26, 2024 20:51
@9999years 9999years marked this pull request as ready for review February 26, 2024 20:51
Copy link
Member

@evanrelf evanrelf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked having the screen cleared the moment I started ghciwatch, so it'd be nice to have that here too.

@9999years 9999years merged commit 7fa09b0 into main Feb 26, 2024
28 checks passed
@9999years 9999years deleted the rebeccat/dux-1635-clear-the-screen-on-reload branch February 26, 2024 22:38
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Bug fixes or non-functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants