Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,656 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,656 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.