… | |
… | |
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 |
198 | paste directly into your (vi :) editor:</p> |
198 | paste 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> |
203 | </dd> |
204 | <dd> |
204 | <dd> |
205 | <p>Of course, this can be modified to suit your needs and your editor :)</p> |
205 | <p>Of course, this can be modified to suit your needs and your editor :)</p> |
206 | </dd> |
206 | </dd> |
207 | <dd> |
207 | <dd> |
… | |
… | |
492 | Called whenever the user presses a key combination that has a |
492 | Called whenever the user presses a key combination that has a |
493 | <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> |
494 | resource in the <code>rxvt(1)</code> manpage). |
494 | resource in the <code>rxvt(1)</code> manpage). |
495 | </dd> |
495 | </dd> |
496 | <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> |
|
|
500 | Called on every X event received on the vt window (and possibly other |
|
|
501 | windows). Should only be used as a last resort. Most event structure |
|
|
502 | members are not passed. |
|
|
503 | </dd> |
|
|
504 | <p></p> |
497 | <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 /> |
498 | </dt> |
506 | </dt> |
499 | <dd> |
507 | <dd> |
500 | Called whenever the window gets the keyboard focus, before rxvt-unicode |
508 | Called whenever the window gets the keyboard focus, before rxvt-unicode |
501 | does focus in processing. |
509 | does focus in processing. |
… | |
… | |
613 | <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 /> |
614 | </dt> |
622 | </dt> |
615 | <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, |
616 | Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, |
624 | Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, |
617 | Button4Mask, Button5Mask, AnyModifier</a></strong><br /> |
625 | Button4Mask, Button5Mask, AnyModifier</a></strong><br /> |
|
|
626 | </dt> |
|
|
627 | <dt><strong><a name="item_urxvt_3a_3anoeventmask_2c_keypressmask_2c_keyrelea">urxvt::NoEventMask, KeyPressMask, KeyReleaseMask, |
|
|
628 | ButtonPressMask, ButtonReleaseMask, EnterWindowMask, LeaveWindowMask, |
|
|
629 | PointerMotionMask, PointerMotionHintMask, Button1MotionMask, Button2MotionMask, |
|
|
630 | Button3MotionMask, Button4MotionMask, Button5MotionMask, ButtonMotionMask, |
|
|
631 | KeymapStateMask, ExposureMask, VisibilityChangeMask, StructureNotifyMask, |
|
|
632 | ResizeRedirectMask, SubstructureNotifyMask, SubstructureRedirectMask, |
|
|
633 | FocusChangeMask, 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, |
|
|
636 | EnterNotify, LeaveNotify, FocusIn, FocusOut, KeymapNotify, Expose, |
|
|
637 | GraphicsExpose, NoExpose, VisibilityNotify, CreateNotify, DestroyNotify, |
|
|
638 | UnmapNotify, MapNotify, MapRequest, ReparentNotify, ConfigureNotify, |
|
|
639 | ConfigureRequest, GravityNotify, ResizeRequest, CirculateNotify, |
|
|
640 | CirculateRequest, PropertyNotify, SelectionClear, SelectionRequest, |
|
|
641 | SelectionNotify, ColormapNotify, ClientMessage, MappingNotify</a></strong><br /> |
618 | </dt> |
642 | </dt> |
619 | <dd> |
643 | <dd> |
620 | Various constants for use in X calls and event processing. |
644 | Various constants for use in X calls and event processing. |
621 | </dd> |
645 | </dd> |
622 | <p></p></dl> |
646 | <p></p></dl> |
… | |
… | |
997 | </dt> |
1021 | </dt> |
998 | <dd> |
1022 | <dd> |
999 | Return the window id of the terminal window. |
1023 | Return the window id of the terminal window. |
1000 | </dd> |
1024 | </dd> |
1001 | <p></p> |
1025 | <p></p> |
|
|
1026 | <dt><strong><a name="item_vt_emask_add">$term->vt_emask_add ($x_event_mask)</a></strong><br /> |
|
|
1027 | </dt> |
|
|
1028 | <dd> |
|
|
1029 | Adds the specified events to the vt event mask. Useful e.g. when you want |
|
|
1030 | to receive pointer events all the times: |
|
|
1031 | </dd> |
|
|
1032 | <dd> |
|
|
1033 | <pre> |
|
|
1034 | $term->vt_emask_add (urxvt::PointerMotionMask);</pre> |
|
|
1035 | </dd> |
|
|
1036 | <p></p> |
1002 | <dt><strong><a name="item_width">$window_width = $term->width</a></strong><br /> |
1037 | <dt><strong><a name="item_width">$window_width = $term->width</a></strong><br /> |
1003 | </dt> |
1038 | </dt> |
1004 | <dt><strong><a name="item_height">$window_height = $term->height</a></strong><br /> |
1039 | <dt><strong><a name="item_height">$window_height = $term->height</a></strong><br /> |
1005 | </dt> |
1040 | </dt> |
1006 | <dt><strong><a name="item_fwidth">$font_width = $term->fwidth</a></strong><br /> |
1041 | <dt><strong><a name="item_fwidth">$font_width = $term->fwidth</a></strong><br /> |
… | |
… | |
1019 | </dt> |
1054 | </dt> |
1020 | <dt><strong><a name="item_savelines">$max_scrollback = $term->saveLines</a></strong><br /> |
1055 | <dt><strong><a name="item_savelines">$max_scrollback = $term->saveLines</a></strong><br /> |
1021 | </dt> |
1056 | </dt> |
1022 | <dt><strong><a name="item_total_rows">$nrow_plus_saveLines = $term->total_rows</a></strong><br /> |
1057 | <dt><strong><a name="item_total_rows">$nrow_plus_saveLines = $term->total_rows</a></strong><br /> |
1023 | </dt> |
1058 | </dt> |
1024 | <dt><strong><a name="item_nsaved">$lines_in_scrollback = $term->nsaved</a></strong><br /> |
1059 | <dt><strong><a name="item_top_row">$topmost_scrollback_row = $term->top_row</a></strong><br /> |
1025 | </dt> |
1060 | </dt> |
1026 | <dd> |
1061 | <dd> |
1027 | Return various integers describing terminal characteristics. |
1062 | Return various integers describing terminal characteristics. |
1028 | </dd> |
1063 | </dd> |
1029 | <p></p> |
1064 | <p></p> |
… | |
… | |
1058 | </dd> |
1093 | </dd> |
1059 | <p></p> |
1094 | <p></p> |
1060 | <dt><strong><a name="item_view_start">$view_start = $term->view_start ([$newvalue])</a></strong><br /> |
1095 | <dt><strong><a name="item_view_start">$view_start = $term->view_start ([$newvalue])</a></strong><br /> |
1061 | </dt> |
1096 | </dt> |
1062 | <dd> |
1097 | <dd> |
1063 | Returns the negative row number of the topmost line. Minimum value is |
1098 | Returns the row number of the topmost displayed line. Maximum value is |
1064 | <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 |
1065 | this many lines into the scrollback buffer. |
1100 | this many lines into the scrollback buffer. |
1066 | </dd> |
1101 | </dd> |
1067 | <p></p> |
1102 | <p></p> |
1068 | <dt><strong><a name="item_want_refresh">$term->want_refresh</a></strong><br /> |
1103 | <dt><strong><a name="item_want_refresh">$term->want_refresh</a></strong><br /> |
1069 | </dt> |
1104 | </dt> |
… | |
… | |
1080 | </dt> |
1115 | </dt> |
1081 | <dd> |
1116 | <dd> |
1082 | Returns the text of the entire row with number <code>$row_number</code>. Row <code>0</code> |
1117 | Returns the text of the entire row with number <code>$row_number</code>. Row <code>0</code> |
1083 | is the topmost terminal line, row <code>$term->$ncol-1</code> is the bottommost |
1118 | is the topmost terminal line, row <code>$term->$ncol-1</code> is the bottommost |
1084 | terminal line. The scrollback buffer starts at line <code>-1</code> and extends to |
1119 | terminal line. The scrollback buffer starts at line <code>-1</code> and extends to |
1085 | line <a href="#item_nsaved"><code>-$term->nsaved</code></a>. Nothing will be returned if a nonexistent line |
1120 | line <code>-$term->nsaved</code>. Nothing will be returned if a nonexistent line |
1086 | is requested. |
1121 | is requested. |
1087 | </dd> |
1122 | </dd> |
1088 | <dd> |
1123 | <dd> |
1089 | <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 |
1090 | line, starting at column <code>$start_col</code> (default <code>0</code>), which is useful |
1125 | line, starting at column <code>$start_col</code> (default <code>0</code>), which is useful |