8

i am using Windows Powershell, and just wondered if there is a way to scroll through the screen buffer (like for example in UNIX bash with SHIFT + PgUp / SHIFT + PgDn). I know the there is a "more" command for paging through the screen buffer, but some keyboard shortcuts would be much more comfortable.

Is there any way to scroll the through the output without using the mouse?

Alexander
  • 235
  • 1
  • 3
  • 9
  • I'm voting to close this question as off-topic because it belongs on [su] but is now too old to migrate. – kasperd Jan 06 '18 at 16:20

5 Answers5

7

The scrollback is provided by Windows console itself, not by the shell inside (just like xterm and similar apps in Unix). And to activate its "scroll" feature, use Alt+Space, E, L as John Rennie described. (You could try the Scroll Lock key, but I can't test it myself here.)

user1686
  • 10,162
  • 1
  • 26
  • 42
  • Even for those of us familiar with the separation of such concerns in Unix, it's pretty hard to guess whether Windows will split things up the same way or not, so without already knowing the answer you wouldn't really know if it'd end up being PowerShell or just the Windows console in general. – SamB Feb 17 '19 at 21:12
3

Press F7. Not the same as page up and page down but still very useful.

JR

Re Alexander's comment: oops, sorry I misunderstood your question. Irritatingly there isn't a simply keystroke to page up or down through the screen buffer. However if you use the comination alt-space, E L (i.e. select Edit/Scroll from the system menu) you'll find the arrows and page up/down scroll through the screen buffer. Press escape to exit the "scroll mode".

Maybe there is a hotkey to enter scroll mode, but I've been able to find it.

John Rennie
  • 7,776
  • 1
  • 23
  • 35
  • 1
    I know the F7 key. But please note that i don't want to navigate through the command history. I just want to seen the output of the commands executed last (if it doesn't fit on a single screen). – Alexander Jul 08 '09 at 07:55
  • See my edit: it's a bit long to squeeze into a comment – John Rennie Jul 08 '09 at 08:47
3

In Windows 10 Powershell use Ctrl+PgUp/PgDn to scroll by line.

In Windows 10 cmd use Ctrl+/ to scroll by line.

mag
  • 31
  • 1
1

Just hold ctrl and push the up or down arrow. That works for me in Windows 10.

sean
  • 11
  • 1
0

Alt+Space, E, L worked for me (and Scroll Lock did not).

Just wanted to add that after activating, the item in the menu becomes gray and can not be changed anymore, so you may wonder how to deactivate it again, which is pretty easy: press Esc or Ctrl+C.

Thought that this may save a little time for someone like myself

AXO
  • 101
  • 3