Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

8
  • +1. Thanks for ANSI quoting tip! (I was looking for something like that). Unfortunately, sending the Esc code didn't work; I'm wondering if its because I'm running tmux in a terminal window, and the scrollback functionality is being supplied by the terminal emulator rather than tmux. In my mind, an Esc code is an Esc code, but it seems that either the terminal or tmux won't accept it. Commented Aug 18, 2012 at 16:30
  • You can check if the ESC is actually reaching tmux. Run: cat | od -t x2 inside tmux and execute: tmux send-keys $'\e\n\004' from somewhere else (that is ESC, NL, C-d). You should see 0a1b or 1b0a depending on your architecture endianess. Commented Aug 18, 2012 at 16:44
  • Strike that, what you need is to enable scrollTtyOutput for your terminal, which is terminal dependent. Commented Aug 18, 2012 at 16:52
  • 1
    I thought you meant break out of tmux scroll, just re-read your question and see that I was wrong. Will delete this answer shortly. Commented Aug 18, 2012 at 16:54
  • It seems it is not enough with the scrollTtyOutput option for the terminal. If the command runs in tmux, it doesn't get registered as terminal output. I have a really ugly work around for that, I'll post it if nothing else is suggested. Commented Aug 18, 2012 at 17:05