12

Mac OS X Terminal marks are incredibly useful.

For example, when I type a command that echoes a lot output, it's easy to read the beginning with Cmd+Up. It will scroll to the last command and highlight it, since there's the option Automatically Mark Prompt Lines and Cmd+Up will scroll to the last mark.

Is there any terminal emulator with this functionality? Or some plugin, whatever. How do you go fast to the last command, highlighting it?

  • 2
    Not that I'm aware of (apart from, of course, Mac OS X Terminal; and presumably iTerm2 with its shell integration having something quite similar). I find this a really useful idea and have filed an enhancement request for vte/gnome-terminal: bugzilla.gnome.org/show_bug.cgi?id=767230. – egmont Jun 4 '16 at 7:41
  • @egmont Thanks, it would be superb having it on GNOME Terminal. – rodorgas Jun 4 '16 at 17:50
5

This is workaround - not a solution.

I run the reset command before a command with a long output. Something like

$ reset
$ cat some-long-file.txt

Then I press Ctrl+Shift+Home (in the Xfce4 Terminal Emulator) to scroll to the beginning of the terminal history.

The downside is that the previous terminal history is lost but sometimes it is acceptable.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.