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 Ruby Operators and Control Structures Ruby Operators Ruby Comparison Operators: Equality and Inequality

aleksi
aleksi
5,392 Points

Clear irb screen

How do you clear interactive ruby terminal screen without exiting irb and then typing 'clear'?

edit: How do I do that in Treehouse's workspaces?

Sandra Hogan
Sandra Hogan
8,657 Points

CTRL+L (holding control key and the letter L) will clear your screen without exiting irb

2 Answers

aleksi
aleksi
5,392 Points

Thank you for your answer, it worked! :) I tested command + l on mac, that didn't work tho. That's why this simple question.

Sandra Hogan
Sandra Hogan
8,657 Points

My Macbook has a control button too...right next to the function key on left...did you try that by any chance? I don't use my Mac often so not sure if it works or not.

Yes, on the Mac there is a control key underneath the shift key. So Control + L will work just fine.