0

On most (all?) Linux terminals (eg gnome terminal, tilda, guake etc,..) and the virtual consoles you can browse up through the terminal's scrollback buffer using the keys (ie without the mouse). Is this possible in OSX's terminal?

eg:

  1. In Gnome Terminal you enter ls
  2. oops - 50 lines of output on a 48 line terminal
  3. Ctrl-Shift-UpArrow scrolls back to see the first few lines of input (and eventually your command invocation

On VC's switch UpArrow for PageUp - is there anything equivalent on OSX?

I'm using OS 10.10.5

  • Which OS version are You using? – Mateusz Szlosek Oct 29 '15 at 11:28
  • Version 10.10.5 – Greg Oct 29 '15 at 11:37
1

There are shortcuts for Page Up/Down and Line Up/Down in Terminal. You can find them under View menu item. For Page Up press ⌘ cmd+⇞ Page Up, for Line Up press ⌘ cmd+⌥ alt+⇞ Page Up.

Edit: you can get ⇞ Page Up on Macbook by pressing Fn+↑ Up Arrow.

  • Thanks - turns out TotalTerminal/Visor was preventing me from seeing the View menu - otherwise I might have found it myself. For me <kbd>cmd</kbd>+<kbd>Up Arrow</kbd> is needed for Line Up - apparently I didn't find it due to fixation with shift. – Greg Oct 29 '15 at 12:03
1

Yes, Terminal supports the standard OS X Page Up/Down keys for scrolling by pages, and there are Terminal-specific commands for scrolling the terminal view by pages or by lines, and they have keyboard shortcuts that are available even when the terminal keyboard map binds other actions to Page Up/Down. The exact shortcuts depend on the version. See the View menu in recent versions, and the Window menu in older versions.

  • Hmm,... turns out half my problem seems to be that Visor prevents the terminal menu from showing,... – Greg Oct 29 '15 at 12:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .