On more recent versions of gnome-terminal, Shift+Ctrl+↑ and Shift+Ctrl+↓ work for scrolling by line, but I have no way of checking for 2.31.
There's nothing built in, exactly, but there are two ways to get at the scrollback text.
You can configure the XTerm.vt100.on4Clicks
and XTerm.vt100.on5Clicks
resources (or from on1Clicks
onwards, for that matter) to choose to copy the whole scrollback to the X11 PRIMARY selection. For example, to copy the whole scrollback on a quadruple click, put this line in your .Xresources
:
XTerm.vt100.on4Clicks: all
You'll then have to arrange your own method for bringing up some way to search the content of the X selection, such as opening an editor or a pager with a window manager binding.
You can call the print-everything
action to send the whole scrollback to a program determined by the XTerm.vt100.printerCommand
resource. For example, to open the scrollback in less (running in a new xterm) when you press Ctrl+/, put these lines in your .Xresources
:
XTerm.vt100.printerCommand: xterm -e sh -c 'less <&3' 3<&0
XTerm.vt100.translations: #override Ctrl ~Meta ~Shift <Key>slash: print-everything()
Best Answer
As far as I know, there is no default way to jump to the top, but the easiest way to jump to the bottom is to type anything (beside the Shift+PgUp/Down of course).
For jumping at the top, you can map e.g. Shift+Home to scroll up 1000pages by starting
xterm
withor adding
to your
$HOME/.Xresources
(you need to restart your XServer or callxkrdb -merge $HOME/.Xresources
to activate it).For jumping additionally to the end with Shift+End, use