Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/public/screen/lib/plugins/loglog/action.php on line 15

Strict Standards: Declaration of action_plugin_captcha::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/public/screen/lib/plugins/captcha/action.php on line 0
GNU screen [commands:readreg]

This is an old revision of the document!



Strict Standards: Declaration of syntax_plugin_graphviz::handle() should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, &$handler) in /home/public/screen/lib/plugins/graphviz/syntax.php on line 20

readreg

Default Keybindings

None.

Syntax

  • readreg [-e encoding] [register [filename]]

Description

Does one of two things, dependent on number of arguments: with zero or one arguments it it duplicates the paste buffer contents into the register specified or entered at the prompt. With two arguments it reads the contents of the named file into the register, just as readbuf reads the screen-exchange file into the paste buffer. You can tell screen the encoding of the file via the -e option.

Examples

The following example will paste the system's password file into the screen window (using register p, where a copy remains):

C-a : readreg p /etc/passwd
C-a : paste p

See Also

 
commands/readreg.1264434638.txt.gz · Last modified: 2010/01/25 15:50 by asciiphil
Recent changes RSS feed GNU General Public License Driven by DokuWiki