Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Ken Opalach
Ken Opalach
1,512 Points

How can I clear the previous lines in the irb console? Instructor seems to be doing it without input.

I am learning numbers methods and I just want to clear the screen to get rid of clutter.

2 Answers

Ken Opalach
Ken Opalach
1,512 Points

Thank you, Seth! I hadn't revisited the Ruby course for weeks and I'd forgotten, it seems.

I also sometimes type "exit" and once it's out, it type "clear" :)

Caitlin Otto
Caitlin Otto
1,520 Points

Thank you - the other method was not working for me, but this did the trick.