title: Leaving tmux scrollback in terminal (iTerm2)
body: <p>Usually <code>tmux</code> will only show as much output as however many rows my terminal currently displays. And then when I detach it, it clears all of its content. I know how to look at scrollback (<code>ctrl+A</code>, <code>[</code>, <code>k</code>, ...), but how can I configure tmux to just print all its output to terminal, as if I wasn't using it at all?</p>
  
  <p>I like <code>tmux</code> because I'm awful at remembering to <code>nohup</code> certain tasks, and because it makes viewing the output of long-running jobs easier. But I would like to be able to view its scrollback more naturally, by simply <em>scrolling back</em> in iTerm2.</p>
  
  <p>Alternatively, if there's a way to do this in <code>screen</code>, I can use that too.</p>