M-A's

technology blog

Thursday 27 August 2009

screen notes

This message is for me only. I don't not expect you learn anything from this or even think this is useful.
C-a means Ctrl-a

Key         | Action           | Notes
C+a c       | new window       |
C+a n       | next window      | I bind F12 to this
C+a p       | previous window  | I bind F11 to this
C+a N       | go to window N   |
C+a "       | window list      | window list is in status line
C+a C+a     | previous window  |
C-a ?       | help             | unbound commands only
C+a :       | screen cmd prompt| up shows last commands
C+a Esc / [ | scrllbck/cpy mode| Enter start and end region
C+a ]       | paste buffer     | Supports pasting between windows
C-U / D     | page up/down     | While in copy mode

Efficient screen workflow:
  • On 2 monitors, start 2 fullscreen ssh sessions
  • Use screen -R -D on the first
  • Use screen -x on the second
You can now use screen as text based window manager. (awesome)

To use screen on the ADP1/G1/N1, use ConnectBot.

Also useful:


# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window 
bindkey -k F1 eval prev fit 
bindkey -k F2 eval next fit 

No comments: