ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/doc/rxvtperl.3.html
(Generate patch)

Comparing rxvt-unicode/doc/rxvtperl.3.html (file contents):
Revision 1.26 by root, Thu Jan 12 12:10:06 2006 UTC vs.
Revision 1.30 by root, Mon Jan 16 06:37:51 2006 UTC

189<code>filename:number</code>, often seen in compiler messages, into <code>vi +$filename 189<code>filename:number</code>, often seen in compiler messages, into <code>vi +$filename
190$word</code>:</p> 190$word</code>:</p>
191</dd> 191</dd>
192<dd> 192<dd>
193<pre> 193<pre>
194 URxvt.selection-autotransform.0: s/^(\\S+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/</pre> 194 URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\\d+):?$/vi +$2 \\Q$1\\E\\x0d/</pre>
195</dd> 195</dd>
196<dd> 196<dd>
197<p>And this example matches the same,but replaces it with vi-commands you can 197<p>And this example matches the same,but replaces it with vi-commands you can
198paste directly into your (vi :) editor:</p> 198paste directly into your (vi :) editor:</p>
199</dd> 199</dd>
200<dd> 200<dd>
201<pre> 201<pre>
202 URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/</pre> 202 URxvt.selection-autotransform.0: s/^([^:[:space:]]+(\\d+):?$/\\x1b:e \\Q$1\\E\\x0d:$2\\x0d/</pre>
203</dd>
204<dd>
205<p>Of course, this can be modified to suit your needs and your editor :)</p>
206</dd>
207<dd>
208<p>To expand the example above to typical perl error messages (``XXX at
209FILENAME line YYY.''), you need a slightly more elaborate solution:</p>
210</dd>
211<dd>
212<pre>
213 URxvt.selection.pattern-0: ( at .*? line \\d+\\.)
214 URxvt.selection-autotransform.0: s/^ at (.*?) line (\\d+)\\.$/\x1b:e \\Q$1\E\\x0d:$2\\x0d/</pre>
215</dd>
216<dd>
217<p>The first line tells the selection code to treat the unchanging part of
218every error message as a selection pattern, and the second line transforms
219the message into vi commands to load the file.</p>
203</dd> 220</dd>
204<p></p> 221<p></p>
205<dt><strong><a name="item_mark_2durls">mark-urls</a></strong><br /> 222<dt><strong><a name="item_mark_2durls">mark-urls</a></strong><br />
206</dt> 223</dt>
207<dd> 224<dd>
475Called whenever the user presses a key combination that has a 492Called whenever the user presses a key combination that has a
476<code>perl:string</code> action bound to it (see description of the <strong>keysym</strong> 493<code>perl:string</code> action bound to it (see description of the <strong>keysym</strong>
477resource in the <code>rxvt(1)</code> manpage). 494resource in the <code>rxvt(1)</code> manpage).
478</dd> 495</dd>
479<p></p> 496<p></p>
497<dt><strong><a name="item_on_x_event__24term_2c__24event">on_x_event $term, $event</a></strong><br />
498</dt>
499<dd>
500Called on every X event received on the vt window (and possibly other
501windows). Should only be used as a last resort. Most event structure
502members are not passed.
503</dd>
504<p></p>
480<dt><strong><a name="item_on_focus_in__24term">on_focus_in $term</a></strong><br /> 505<dt><strong><a name="item_on_focus_in__24term">on_focus_in $term</a></strong><br />
481</dt> 506</dt>
482<dd> 507<dd>
483Called whenever the window gets the keyboard focus, before rxvt-unicode 508Called whenever the window gets the keyboard focus, before rxvt-unicode
484does focus in processing. 509does focus in processing.
596<dt><strong><a name="item_urxvt_3a_3acurrenttime">urxvt::CurrentTime</a></strong><br /> 621<dt><strong><a name="item_urxvt_3a_3acurrenttime">urxvt::CurrentTime</a></strong><br />
597</dt> 622</dt>
598<dt><strong><a name="item_urxvt_3a_3ashiftmask_2c_lockmask_2c_controlmask_2c">urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, 623<dt><strong><a name="item_urxvt_3a_3ashiftmask_2c_lockmask_2c_controlmask_2c">urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask,
599Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, 624Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask,
600Button4Mask, Button5Mask, AnyModifier</a></strong><br /> 625Button4Mask, Button5Mask, AnyModifier</a></strong><br />
626</dt>
627<dt><strong><a name="item_urxvt_3a_3anoeventmask_2c_keypressmask_2c_keyrelea">urxvt::NoEventMask, KeyPressMask, KeyReleaseMask,
628ButtonPressMask, ButtonReleaseMask, EnterWindowMask, LeaveWindowMask,
629PointerMotionMask, PointerMotionHintMask, Button1MotionMask, Button2MotionMask,
630Button3MotionMask, Button4MotionMask, Button5MotionMask, ButtonMotionMask,
631KeymapStateMask, ExposureMask, VisibilityChangeMask, StructureNotifyMask,
632ResizeRedirectMask, SubstructureNotifyMask, SubstructureRedirectMask,
633FocusChangeMask, PropertyChangeMask, ColormapChangeMask, OwnerGrabButtonMask</a></strong><br />
634</dt>
635<dt><strong><a name="item_urxvt_3a_3akeypress_2c_keyrelease_2c_buttonpress_2">urxvt::KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify,
636EnterNotify, LeaveNotify, FocusIn, FocusOut, KeymapNotify, Expose,
637GraphicsExpose, NoExpose, VisibilityNotify, CreateNotify, DestroyNotify,
638UnmapNotify, MapNotify, MapRequest, ReparentNotify, ConfigureNotify,
639ConfigureRequest, GravityNotify, ResizeRequest, CirculateNotify,
640CirculateRequest, PropertyNotify, SelectionClear, SelectionRequest,
641SelectionNotify, ColormapNotify, ClientMessage, MappingNotify</a></strong><br />
601</dt> 642</dt>
602<dd> 643<dd>
603Various constants for use in X calls and event processing. 644Various constants for use in X calls and event processing.
604</dd> 645</dd>
605<p></p></dl> 646<p></p></dl>
980</dt> 1021</dt>
981<dd> 1022<dd>
982Return the window id of the terminal window. 1023Return the window id of the terminal window.
983</dd> 1024</dd>
984<p></p> 1025<p></p>
1026<dt><strong><a name="item_vt_emask_add">$term-&gt;vt_emask_add ($x_event_mask)</a></strong><br />
1027</dt>
1028<dd>
1029Adds the specified events to the vt event mask. Useful e.g. when you want
1030to receive pointer events all the times:
1031</dd>
1032<dd>
1033<pre>
1034 $term-&gt;vt_emask_add (urxvt::PointerMotionMask);</pre>
1035</dd>
1036<p></p>
985<dt><strong><a name="item_width">$window_width = $term-&gt;width</a></strong><br /> 1037<dt><strong><a name="item_width">$window_width = $term-&gt;width</a></strong><br />
986</dt> 1038</dt>
987<dt><strong><a name="item_height">$window_height = $term-&gt;height</a></strong><br /> 1039<dt><strong><a name="item_height">$window_height = $term-&gt;height</a></strong><br />
988</dt> 1040</dt>
989<dt><strong><a name="item_fwidth">$font_width = $term-&gt;fwidth</a></strong><br /> 1041<dt><strong><a name="item_fwidth">$font_width = $term-&gt;fwidth</a></strong><br />
1002</dt> 1054</dt>
1003<dt><strong><a name="item_savelines">$max_scrollback = $term-&gt;saveLines</a></strong><br /> 1055<dt><strong><a name="item_savelines">$max_scrollback = $term-&gt;saveLines</a></strong><br />
1004</dt> 1056</dt>
1005<dt><strong><a name="item_total_rows">$nrow_plus_saveLines = $term-&gt;total_rows</a></strong><br /> 1057<dt><strong><a name="item_total_rows">$nrow_plus_saveLines = $term-&gt;total_rows</a></strong><br />
1006</dt> 1058</dt>
1007<dt><strong><a name="item_nsaved">$lines_in_scrollback = $term-&gt;nsaved</a></strong><br /> 1059<dt><strong><a name="item_top_row">$topmost_scrollback_row = $term-&gt;top_row</a></strong><br />
1008</dt> 1060</dt>
1009<dd> 1061<dd>
1010Return various integers describing terminal characteristics. 1062Return various integers describing terminal characteristics.
1011</dd> 1063</dd>
1012<p></p> 1064<p></p>
1041</dd> 1093</dd>
1042<p></p> 1094<p></p>
1043<dt><strong><a name="item_view_start">$view_start = $term-&gt;view_start ([$newvalue])</a></strong><br /> 1095<dt><strong><a name="item_view_start">$view_start = $term-&gt;view_start ([$newvalue])</a></strong><br />
1044</dt> 1096</dt>
1045<dd> 1097<dd>
1046Returns the negative row number of the topmost line. Minimum value is 1098Returns the row number of the topmost displayed line. Maximum value is
1047<code>0</code>, which displays the normal terminal contents. Larger values scroll 1099<code>0</code>, which displays the normal terminal contents. Lower values scroll
1048this many lines into the scrollback buffer. 1100this many lines into the scrollback buffer.
1049</dd> 1101</dd>
1050<p></p> 1102<p></p>
1051<dt><strong><a name="item_want_refresh">$term-&gt;want_refresh</a></strong><br /> 1103<dt><strong><a name="item_want_refresh">$term-&gt;want_refresh</a></strong><br />
1052</dt> 1104</dt>
1063</dt> 1115</dt>
1064<dd> 1116<dd>
1065Returns the text of the entire row with number <code>$row_number</code>. Row <code>0</code> 1117Returns the text of the entire row with number <code>$row_number</code>. Row <code>0</code>
1066is the topmost terminal line, row <code>$term-&gt;$ncol-1</code> is the bottommost 1118is the topmost terminal line, row <code>$term-&gt;$ncol-1</code> is the bottommost
1067terminal line. The scrollback buffer starts at line <code>-1</code> and extends to 1119terminal line. The scrollback buffer starts at line <code>-1</code> and extends to
1068line <a href="#item_nsaved"><code>-$term-&gt;nsaved</code></a>. Nothing will be returned if a nonexistent line 1120line <code>-$term-&gt;nsaved</code>. Nothing will be returned if a nonexistent line
1069is requested. 1121is requested.
1070</dd> 1122</dd>
1071<dd> 1123<dd>
1072<p>If <code>$new_text</code> is specified, it will replace characters in the current 1124<p>If <code>$new_text</code> is specified, it will replace characters in the current
1073line, starting at column <code>$start_col</code> (default <code>0</code>), which is useful 1125line, starting at column <code>$start_col</code> (default <code>0</code>), which is useful

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines