… | |
… | |
227 | }; |
227 | }; |
228 | } |
228 | } |
229 | |
229 | |
230 | load_script $_ for grep -f $_, <$LIBDIR/perl-ext/*>; |
230 | load_script $_ for grep -f $_, <$LIBDIR/perl-ext/*>; |
231 | |
231 | |
232 | |
|
|
233 | =back |
232 | =back |
234 | |
233 | |
235 | =head2 The C<urxvt::term> Class |
234 | =head2 The C<urxvt::term> Class |
236 | |
235 | |
237 | =over 4 |
236 | =over 4 |
|
|
237 | |
|
|
238 | =item $value = $term->resource ($name[, $newval]) |
|
|
239 | |
|
|
240 | Returns the current resource value associated with a given name and |
|
|
241 | optionally sets a new value. Setting values is most useful in the C<init> |
|
|
242 | hook. Unset resources are returned and accepted as C<undef>. |
|
|
243 | |
|
|
244 | The new value must be properly encoded to a suitable character encoding |
|
|
245 | before passing it to this method. Similarly, the returned value may need |
|
|
246 | to be converted from the used encoding to text. |
|
|
247 | |
|
|
248 | Resource names are as defined in F<src/rsinc.h>. Colours can be specified |
|
|
249 | as resource names of the form C<< color+<index> >>, e.g. C<color+5>. (will |
|
|
250 | likely change). |
|
|
251 | |
|
|
252 | Please note that resource strings will currently only be freed when the |
|
|
253 | terminal is destroyed, so changing options frequently will eat memory. |
|
|
254 | |
|
|
255 | Here is a a likely non-exhaustive list of resource names, not all of which |
|
|
256 | are supported in every build, please see the source to see the actual |
|
|
257 | list: |
|
|
258 | |
|
|
259 | answerbackstring backgroundPixmap backspace_key boldFont boldItalicFont |
|
|
260 | borderLess color cursorBlink cursorUnderline cutchars delete_key |
|
|
261 | display_name embed ext_bwidth fade font geometry hold iconName |
|
|
262 | imFont imLocale inputMethod insecure int_bwidth intensityStyles |
|
|
263 | italicFont jumpScroll lineSpace loginShell mapAlert menu meta8 |
|
|
264 | modifier mouseWheelScrollPage name pastableTabs path pointerBlank |
|
|
265 | pointerBlankDelay preeditType print_pipe pty_fd reverseVideo saveLines |
|
|
266 | scrollBar scrollBar_align scrollBar_floating scrollBar_right |
|
|
267 | scrollBar_thickness scrollTtyKeypress scrollTtyOutput scrollWithBuffer |
|
|
268 | scrollstyle secondaryScreen secondaryScroll selectstyle shade term_name |
|
|
269 | title transparent transparent_all tripleclickwords utmpInhibit |
|
|
270 | visualBell |
|
|
271 | |
|
|
272 | =cut |
|
|
273 | |
|
|
274 | sub urxvt::term::resource($$;$) { |
|
|
275 | my ($self, $name) = (shift, shift); |
|
|
276 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
|
|
277 | goto &urxvt::term::_resource; |
|
|
278 | } |
238 | |
279 | |
239 | =item ($row, $col) = $term->selection_mark ([$row, $col]) |
280 | =item ($row, $col) = $term->selection_mark ([$row, $col]) |
240 | |
281 | |
241 | =item ($row, $col) = $term->selection_beg ([$row, $col]) |
282 | =item ($row, $col) = $term->selection_beg ([$row, $col]) |
242 | |
283 | |
… | |
… | |
391 | |
432 | |
392 | Stop watching for events on the given filehandle. |
433 | Stop watching for events on the given filehandle. |
393 | |
434 | |
394 | =back |
435 | =back |
395 | |
436 | |
|
|
437 | =head1 ENVIRONMENT |
|
|
438 | |
|
|
439 | =head2 URXVT_PERL_VERBOSITY |
|
|
440 | |
|
|
441 | This variable controls the verbosity level of the perl extension. Higher |
|
|
442 | numbers indicate more verbose output. |
|
|
443 | |
|
|
444 | =over 4 |
|
|
445 | |
|
|
446 | =item 0 - only fatal messages |
|
|
447 | |
|
|
448 | =item 3 - script loading and management |
|
|
449 | |
|
|
450 | =item 10 - all events received |
|
|
451 | |
|
|
452 | =back |
|
|
453 | |
396 | =head1 AUTHOR |
454 | =head1 AUTHOR |
397 | |
455 | |
398 | Marc Lehmann <pcg@goof.com> |
456 | Marc Lehmann <pcg@goof.com> |
399 | http://software.schmorp.de/pkg/rxvt-unicode |
457 | http://software.schmorp.de/pkg/rxvt-unicode |
400 | |
458 | |