.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "urxvt-eval 1" .TH urxvt-eval 1 2024-03-07 9.31 RXVT-UNICODE .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME eval \- evaluate arbitrary perl code using actions .SH EXAMPLES .IX Header "EXAMPLES" .Vb 3 \& URxvt.keysym.M\-c: eval:selection_to_clipboard \& URxvt.keysym.M\-v: eval:paste_clipboard \& URxvt.keysym.M\-V: eval:paste_primary \& \& URxvt.keysym.M\-Up: eval:scroll_up 1 \& URxvt.keysym.M\-Down: eval:scroll_down 1 \& URxvt.keysym.M\-Home: eval:scroll_to_top \& URxvt.keysym.M\-End: eval:scroll_to_bottom .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Add support for evaluating arbitrary perl code using actions in keysym resources. If a keysym \fIaction\fR takes the form \f(CW\*(C`eval:STRING\*(C'\fR, the specified \fBSTRING\fR is evaluated as a Perl expression. While the full urxvt API is available, the following methods are also provided for users' convenience, as they implement basic actions: .ie n .IP "scroll_up $count" 4 .el .IP "scroll_up \f(CW$count\fR" 4 .IX Item "scroll_up $count" .PD 0 .ie n .IP "scroll_up_pages $count" 4 .el .IP "scroll_up_pages \f(CW$count\fR" 4 .IX Item "scroll_up_pages $count" .ie n .IP "scroll_down $count" 4 .el .IP "scroll_down \f(CW$count\fR" 4 .IX Item "scroll_down $count" .ie n .IP "scroll_down_pages $count" 4 .el .IP "scroll_down_pages \f(CW$count\fR" 4 .IX Item "scroll_down_pages $count" .PD Scroll up or down by \f(CW$count\fR lines or pages. .IP scroll_to_top 4 .IX Item "scroll_to_top" .PD 0 .IP scroll_to_bottom 4 .IX Item "scroll_to_bottom" .PD Scroll to the top or bottom of the scrollback. .IP selection_to_clipboard 4 .IX Item "selection_to_clipboard" Copy the selection to the CLIPBOARD. .IP paste_primary 4 .IX Item "paste_primary" .PD 0 .IP paste_clipboard 4 .IX Item "paste_clipboard" .PD Paste the value of the PRIMARY or CLIPBOARD selection.