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 after "next", "continue", etc. #11

Open
jmuheim opened this issue Jul 17, 2012 · 1 comment
Open

Clear screen after "next", "continue", etc. #11

jmuheim opened this issue Jul 17, 2012 · 1 comment

Comments

@jmuheim
Copy link

jmuheim commented Jul 17, 2012

I would find it useful to let Pry clear the screen each time I input next, continue, etc. Is there an option for this?

Thank you for this wonderful gem.

@banister
Copy link
Collaborator

Try this:

Pry.commands.before_command("next") { run ".clear" }

However beware that this API might be deprecated soon in favor of an improved one.

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

2 participants