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 trialBen Barber-Hays
190 PointsCraig keeps clearing his console with what looks like a key stroke but I can't recall how to do that.
How do I clear the console?
6 Answers
Alexander Davison
65,469 PointsCtrl+L clears the screen on Mac, Windows, and Linux.
Jazmin T
Courses Plus Student 234 Pointsi hit ctrl + shift + D & then type clear, and then python :o
Alexander Davison
65,469 PointsEasier to hit Ctrl+L :)
Timothy Long
Front End Web Development Techdegree Student 6,833 PointsAlternatively typing "clear" does the trick. At least on Mac. Its been a while since I've been on CMD or Powershell.
Alexander Davison
65,469 PointsYou can type clear
(or cls
on Windows), but you must first exit Python, type clear
, and re-enter Python, which is a hassle. It's easier to push Ctrl+L.
Ben Barber-Hays
190 PointsThanks Alexander.
Alexander Davison
65,469 PointsBen Barber-Hays
190 PointsThanks everyone. Haven't been able to get on here for a week so I apologise for the delayed gratitude.
Rouillie Wilkerson
10,419 Points"q" ...That's what I did.