C-a [C-a C-[C-a esccopy
Enter copy/scrollback mode. This allows you to copy text from the current window and its history into the paste buffer. In this mode a vi-like 'full screen editor' is active:
h, j, k, l0, ^ and $H, M and L+ and -G|w, b, eB, Evi).C-u and C-dC-b and C-fg%
Note: emacs style movement keys can be customized by a .screenrc command. (E.g. markkeys “h=^B:l=^F:$=^E”) There is no simple method for a full emacs-style keymap, as this involves multi-character codes.
The copy range is specified by setting two marks. The text between these marks will be highlighted. Press space to set the first or second mark respectively.
Y and yWAny of these commands can be prefixed with a repeat count number by pressing digits 0..9 which is taken as a repeat count.
Example: “C-a C-[ H 10 j 5 Y” will copy lines 11 to 15 into the paste buffer.
/?C-a sC-r
There are however some keys that act differently than in vi. vi does not allow one to yank rectangular blocks of text, but screen does. Press c or C to set the left or right margin respectively. If no repeat count is given, both default to the current cursor position.
Example: Try this on a rather full text screen: “C-a [ M 20 l SPACE c 10 l 5 j C SPACE”.
This moves one to the middle line of the screen, moves in 20 columns left, marks the beginning of the paste buffer, sets the left column, moves 5 columns down, sets the right column, and then marks the end of the paste buffer.
Now try: “C-a [ M 20 l SPACE 10 l 5 j SPACE” and notice the difference in the amount of text copied.
Jcrlf on”.vvi users with “:set numbers” - it toggles the left margin between column 9 and 1.aA>C-A [ g SPACE G $ >”.C-gx@All keys not described here exit copy mode.
None yet.