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:
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.
Any of these commands can be prefixed with a repeat count number by pressing digits 0..9 which is taken as a repeat count.
C-a C-[ H 10 j 5 Y” will copy lines 11 to 15 into the paste buffer.
There are however some keys that act differently than in
vi does not allow one to yank rectangular blocks of text, but screen does. Press
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.
viusers with ”
:set numbers” - it toggles the left margin between column 9 and 1.
C-A [ g SPACE G $ >”.
All keys not described here exit copy mode.