Powershell screen buffer

9,756

Solution 1

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.)

Solution 2

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.

Solution 3

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

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

Solution 4

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

Share:
9,756

Related videos on Youtube

Alexander
Author by

Alexander

Nothing special about me, just another guy writing some code.

Updated on September 17, 2022

Comments

  • Alexander
    Alexander over 1 year

    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?

    • kasperd
      kasperd over 6 years
      I'm voting to close this question as off-topic because it belongs on Super User but is now too old to migrate.
  • Alexander
    Alexander almost 15 years
    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).
  • John Rennie
    John Rennie almost 15 years
    See my edit: it's a bit long to squeeze into a comment
  • SamB
    SamB over 5 years
    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
    SamB over 5 years
    And it looks like plain PgUp/PgDn work to scroll by screenful in PowerShell, too!