… | |
… | |
257 | For example, the following will transform selections of the form |
257 | For example, the following will transform selections of the form |
258 | \&\f(CW\*(C`filename:number\*(C'\fR, often seen in compiler messages, into \f(CW\*(C`vi +$filename |
258 | \&\f(CW\*(C`filename:number\*(C'\fR, often seen in compiler messages, into \f(CW\*(C`vi +$filename |
259 | $word\*(C'\fR: |
259 | $word\*(C'\fR: |
260 | .Sp |
260 | .Sp |
261 | .Vb 1 |
261 | .Vb 1 |
262 | \& URxvt.selection-autotransform.0: s/^(\e\eS+):(\e\ed+):?$/vi +$2 \e\eQ$1\e\eE\e\ex0d/ |
262 | \& URxvt.selection-autotransform.0: s/^([^:[:space:]]+):(\e\ed+):?$/vi +$2 \e\eQ$1\e\eE\e\ex0d/ |
263 | .Ve |
263 | .Ve |
264 | .Sp |
264 | .Sp |
265 | And this example matches the same,but replaces it with vi-commands you can |
265 | And this example matches the same,but replaces it with vi-commands you can |
266 | paste directly into your (vi :) editor: |
266 | paste directly into your (vi :) editor: |
267 | .Sp |
267 | .Sp |
268 | .Vb 1 |
268 | .Vb 1 |
269 | \& URxvt.selection-autotransform.0: s/^(S+):(d+):?$/\e\ex1b:e \e\eQ$1\e\eE\e\ex0d:$2\e\ex0d/ |
269 | \& URxvt.selection-autotransform.0: s/^([^:[:space:]]+(\e\ed+):?$/\e\ex1b:e \e\eQ$1\e\eE\e\ex0d:$2\e\ex0d/ |
270 | .Ve |
270 | .Ve |
271 | .Sp |
271 | .Sp |
272 | Of course, this can be modified to suit your needs and your editor :) |
272 | Of course, this can be modified to suit your needs and your editor :) |
273 | .Sp |
273 | .Sp |
274 | To expand the example above to typical perl error messages (\*(L"\s-1XXX\s0 at |
274 | To expand the example above to typical perl error messages (\*(L"\s-1XXX\s0 at |
… | |
… | |
490 | .el .IP "on_keyboard_command \f(CW$term\fR, \f(CW$string\fR" 4 |
490 | .el .IP "on_keyboard_command \f(CW$term\fR, \f(CW$string\fR" 4 |
491 | .IX Item "on_keyboard_command $term, $string" |
491 | .IX Item "on_keyboard_command $term, $string" |
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 | \&\f(CW\*(C`perl:string\*(C'\fR action bound to it (see description of the \fBkeysym\fR |
493 | \&\f(CW\*(C`perl:string\*(C'\fR action bound to it (see description of the \fBkeysym\fR |
494 | resource in the @@RXVT_NAME@@(1) manpage). |
494 | resource in the @@RXVT_NAME@@(1) manpage). |
|
|
495 | .ie n .IP "on_x_event $term\fR, \f(CW$event" 4 |
|
|
496 | .el .IP "on_x_event \f(CW$term\fR, \f(CW$event\fR" 4 |
|
|
497 | .IX Item "on_x_event $term, $event" |
|
|
498 | Called on every X event received on the vt window (and possibly other |
|
|
499 | windows). Should only be used as a last resort. Most event structure |
|
|
500 | members are not passed. |
495 | .ie n .IP "on_focus_in $term" 4 |
501 | .ie n .IP "on_focus_in $term" 4 |
496 | .el .IP "on_focus_in \f(CW$term\fR" 4 |
502 | .el .IP "on_focus_in \f(CW$term\fR" 4 |
497 | .IX Item "on_focus_in $term" |
503 | .IX Item "on_focus_in $term" |
498 | Called whenever the window gets the keyboard focus, before rxvt-unicode |
504 | Called whenever the window gets the keyboard focus, before rxvt-unicode |
499 | does focus in processing. |
505 | does focus in processing. |
… | |
… | |
585 | .IP "urxvt::CurrentTime" 4 |
591 | .IP "urxvt::CurrentTime" 4 |
586 | .IX Item "urxvt::CurrentTime" |
592 | .IX Item "urxvt::CurrentTime" |
587 | .PD 0 |
593 | .PD 0 |
588 | .IP "urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask, AnyModifier" 4 |
594 | .IP "urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask, AnyModifier" 4 |
589 | .IX Item "urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask, AnyModifier" |
595 | .IX Item "urxvt::ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, Mod5Mask, Button1Mask, Button2Mask, Button3Mask, Button4Mask, Button5Mask, AnyModifier" |
|
|
596 | .IP "urxvt::NoEventMask, KeyPressMask, KeyReleaseMask, ButtonPressMask, ButtonReleaseMask, EnterWindowMask, LeaveWindowMask, PointerMotionMask, PointerMotionHintMask, Button1MotionMask, Button2MotionMask, Button3MotionMask, Button4MotionMask, Button5MotionMask, ButtonMotionMask, KeymapStateMask, ExposureMask, VisibilityChangeMask, StructureNotifyMask, ResizeRedirectMask, SubstructureNotifyMask, SubstructureRedirectMask, FocusChangeMask, PropertyChangeMask, ColormapChangeMask, OwnerGrabButtonMask" 4 |
|
|
597 | .IX Item "urxvt::NoEventMask, KeyPressMask, KeyReleaseMask, ButtonPressMask, ButtonReleaseMask, EnterWindowMask, LeaveWindowMask, PointerMotionMask, PointerMotionHintMask, Button1MotionMask, Button2MotionMask, Button3MotionMask, Button4MotionMask, Button5MotionMask, ButtonMotionMask, KeymapStateMask, ExposureMask, VisibilityChangeMask, StructureNotifyMask, ResizeRedirectMask, SubstructureNotifyMask, SubstructureRedirectMask, FocusChangeMask, PropertyChangeMask, ColormapChangeMask, OwnerGrabButtonMask" |
|
|
598 | .IP "urxvt::KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify, EnterNotify, LeaveNotify, FocusIn, FocusOut, KeymapNotify, Expose, GraphicsExpose, NoExpose, VisibilityNotify, CreateNotify, DestroyNotify, UnmapNotify, MapNotify, MapRequest, ReparentNotify, ConfigureNotify, ConfigureRequest, GravityNotify, ResizeRequest, CirculateNotify, CirculateRequest, PropertyNotify, SelectionClear, SelectionRequest, SelectionNotify, ColormapNotify, ClientMessage, MappingNotify" 4 |
|
|
599 | .IX Item "urxvt::KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify, EnterNotify, LeaveNotify, FocusIn, FocusOut, KeymapNotify, Expose, GraphicsExpose, NoExpose, VisibilityNotify, CreateNotify, DestroyNotify, UnmapNotify, MapNotify, MapRequest, ReparentNotify, ConfigureNotify, ConfigureRequest, GravityNotify, ResizeRequest, CirculateNotify, CirculateRequest, PropertyNotify, SelectionClear, SelectionRequest, SelectionNotify, ColormapNotify, ClientMessage, MappingNotify" |
590 | .PD |
600 | .PD |
591 | Various constants for use in X calls and event processing. |
601 | Various constants for use in X calls and event processing. |
592 | .Sh "\s-1RENDITION\s0" |
602 | .Sh "\s-1RENDITION\s0" |
593 | .IX Subsection "RENDITION" |
603 | .IX Subsection "RENDITION" |
594 | Rendition bitsets contain information about colour, font, font styles and |
604 | Rendition bitsets contain information about colour, font, font styles and |
… | |
… | |
882 | Return the window id of the toplevel window. |
892 | Return the window id of the toplevel window. |
883 | .ie n .IP "$windowid = $term\->vt" 4 |
893 | .ie n .IP "$windowid = $term\->vt" 4 |
884 | .el .IP "$windowid = \f(CW$term\fR\->vt" 4 |
894 | .el .IP "$windowid = \f(CW$term\fR\->vt" 4 |
885 | .IX Item "$windowid = $term->vt" |
895 | .IX Item "$windowid = $term->vt" |
886 | Return the window id of the terminal window. |
896 | Return the window id of the terminal window. |
|
|
897 | .IP "$term\->vt_emask_add ($x_event_mask)" 4 |
|
|
898 | .IX Item "$term->vt_emask_add ($x_event_mask)" |
|
|
899 | Adds the specified events to the vt event mask. Useful e.g. when you want |
|
|
900 | to receive pointer events all the times: |
|
|
901 | .Sp |
|
|
902 | .Vb 1 |
|
|
903 | \& $term->vt_emask_add (urxvt::PointerMotionMask); |
|
|
904 | .Ve |
887 | .ie n .IP "$window_width = $term\->width" 4 |
905 | .ie n .IP "$window_width = $term\->width" 4 |
888 | .el .IP "$window_width = \f(CW$term\fR\->width" 4 |
906 | .el .IP "$window_width = \f(CW$term\fR\->width" 4 |
889 | .IX Item "$window_width = $term->width" |
907 | .IX Item "$window_width = $term->width" |
890 | .PD 0 |
908 | .PD 0 |
891 | .ie n .IP "$window_height = $term\->height" 4 |
909 | .ie n .IP "$window_height = $term\->height" 4 |