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 trialSebastian Eguez
8,248 PointsHow do I clear my page on a Mac?
treehouse:~/workspace$ irb
irb(main):001:0> a = 1
=> 1
irb(main):002:0> b = 2
=> 2
irb(main):003:0> clear
NameError: undefined local variable or method `clear' for main:Object
Did you mean? caller
from (irb):3
from /usr/local/bin/irb:11:in `<main>'
How do I clear this on a Mac?
I'm guessing I can't because a = 1 and there's an "a" un clear.
Cle"a"er.
: )
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey Sebastian,
While in the irb
CTRL-L should clear the screen for you.
Sebastian Eguez
8,248 PointsSebastian Eguez
8,248 Points: )
Thank you Jason.