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 trialCJ Jugarap
2,517 PointsHow do you clear the page when in Interactive Ruby?
I tried typing clear but learned that this doesn't work...
3 Answers
Maciej Czuchnowski
36,441 PointsTwo ways:
Using
Ctrl + L
key combinationUsing
system('clear')
command
abdi ali
10,920 Pointsuse exit
Derrick Lyons
1,915 PointsJust type "exit" in the terminal.
CJ Jugarap
2,517 PointsCJ Jugarap
2,517 PointsThanks for your response! system('clear') worked, however, the shortcut Ctrl + L is giving me ^L, and when I enter, turns ie: "irb(main):004:0>" to "irb(main):005:0*"
Maciej Czuchnowski
36,441 PointsMaciej Czuchnowski
36,441 PointsAre you under Windows or Mac? It works in my Ubuntu Linux, but I can imagine it's not universal for all operating systems ;)
CJ Jugarap
2,517 PointsCJ Jugarap
2,517 PointsI'm on Windows actually. Maybe I should convert? =]
Maciej Czuchnowski
36,441 PointsMaciej Czuchnowski
36,441 PointsYou should ALWAYS convert to Linux or Mac from Windows :). Ruby and Rails development is always harder under Windows and you can't fully follow the tutorials, since they use Unix-based systems. Use a virtual machine if you can (VMWare Player is my software of choice, now I moved to a dedicated ultrabook with Ubuntu).
CJ Jugarap
2,517 PointsCJ Jugarap
2,517 PointsThank you for the advice! My goal is to be a Ruby on Rails Developer so I may have to convert. I have no knowledge in Linux whatsover so learning that OS might be a new challenge I should undertake soon as well.
Maciej Czuchnowski
36,441 PointsMaciej Czuchnowski
36,441 PointsThe installation should be simple and the use is not that difficult. And Treehouse has a course for using Console, so you should definitely check it out: http://teamtreehouse.com/library/console-foundations