News for hackers. Stuff that matters.
Re:SSH productivity tips by pyre on Tuesday August 16, 2011 @06:28PM (#2893157)

  screen -x
Attaches a currently running session without detaching it from where ever it's currently attached to. (Note: this can cause some issues if the currently attached session has a larger/smaller terminal).

I've also mapped Ctrl-a to ` instead. This makes flipping between the most recent 'windows' as easy as `q.

  # Use backtick as the escape character. Use F11 and F12 to switch between ` and
  # C-o as the escape sequence. This is useful when pasting text to the terminal
  # that may contain backticks in the text.
  #
  # SOURCE http://superuser.com/questions/74492/whats-the-best-prefix-escape-sequence-for-screen-or-tmux
  escape \140\140
  bindkey -d -k F1 escape ^O^O        # bound to F11
  bindkey -d -k F2 escape \140\140    # bound to F12
F11 swaps the escape sequence to C-o (useful for pasting things that might have a ` into the terminal) F12 swaps the escape back to `

Also:

  [escape] n  -- cycle to the next window in the list
  [escape] p  -- cycle to the prev window in the list
  [escape] "  -- see the window list
Turn off the startup message:

  startup_message off

* Note: 'escape' doesn't refer to the Escape key, but to the key sequence that 'escapes' all screen key bindings (default: C-a).

There are no comments on this comment yet.