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 trialMichael Hanna
17,649 PointsHow can I scroll in the console without a mouse?
I'm using a laptop with no mousewheel (just a touchpad and right/left click). Windows 7. Up and down arrows cycle through my most recent command entries, and PgUp/PgDn don't work.
3 Answers
Michael Hanna
17,649 PointsHolding down CTRL while pressing the up and down arrows allows you to scroll in the console.
Figured this out last night. I thought I'd tried all the modifier keys with up and down but I must have skipped over CTRL...
Thank you guys for your answers. Hopefully this question proves helpful to some mouseless treehouser in the future.
Benjamin Keller
20,763 PointsYou can add the command "|less" at the end of your statement (example: ...&& java Example |less) and it will load in a scroll-able format.
Then, type "q" (enter) to exit.
Michael Hanna
17,649 PointsBut what if I run the cat command and the output is longer than my screen? Or if I clear the console and then want to scroll up to see the last few lines of output?
Benjamin Keller
20,763 PointsWell, I don't know what to tell you about clearing the console. But using |less will allow you to scroll using pgup & pgdn to see all the output for that command.
James Gill
Courses Plus Student 34,936 PointsMichael,
In Windows, you typically use the PgUp/PgDn keys or up/down arrows to scroll within a window, and Home/End to go to the top/bottom of a window.
Also--if you haven't clicked within the window (using your touchpad), none of this will work.
If none of this works, it's not a Windows problem, it's a Treehouse problem--report it to Treehouse Support (Treehouse staff almost exclusively work in OS X, so they may be unaware of it).