… | |
… | |
84 | |
84 | |
85 | Displays a digital clock using the built-in overlay. |
85 | Displays a digital clock using the built-in overlay. |
86 | |
86 | |
87 | =item mark-urls |
87 | =item mark-urls |
88 | |
88 | |
89 | Uses per-line display filtering (C<on_line_update>) to underline urls. |
89 | Uses per-line display filtering (C<on_line_update>) to underline urls and |
|
|
90 | make them clickable. When clicked, the program specified in the resource |
|
|
91 | C<urlLauncher> (default C<x-www-browser>) will be started. |
90 | |
92 | |
91 | =item block-graphics-to-ascii |
93 | =item block-graphics-to-ascii |
92 | |
94 | |
93 | A not very useful example of filtering all text output to the terminal, |
95 | A not very useful example of filtering all text output to the terminal, |
94 | by replacing all line-drawing characters (U+2500 .. U+259F) by a |
96 | by replacing all line-drawing characters (U+2500 .. U+259F) by a |
… | |
… | |
494 | $msg .= "\n" |
496 | $msg .= "\n" |
495 | unless $msg =~ /\n$/; |
497 | unless $msg =~ /\n$/; |
496 | urxvt::warn ($msg); |
498 | urxvt::warn ($msg); |
497 | }; |
499 | }; |
498 | |
500 | |
499 | delete $ENV{IFS}; |
501 | # delete $ENV{IFS}; |
500 | delete $ENV{CDPATH}; |
502 | # delete $ENV{CDPATH}; |
501 | delete $ENV{BASH_ENV}; |
503 | # delete $ENV{BASH_ENV}; |
502 | $ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin"; |
504 | # $ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin"; |
503 | } |
505 | } |
504 | |
506 | |
505 | my @hook_count; |
507 | my @hook_count; |
506 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
508 | my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; |
507 | |
509 | |
… | |
… | |
860 | my ($self, $name) = (shift, shift); |
862 | my ($self, $name) = (shift, shift); |
861 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
863 | unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); |
862 | &urxvt::term::_resource |
864 | &urxvt::term::_resource |
863 | } |
865 | } |
864 | |
866 | |
|
|
867 | =item $value = $term->x_resource ($pattern) |
|
|
868 | |
|
|
869 | Returns the X-Resource for the given pattern, excluding the program or |
|
|
870 | class name, i.e. C<< $term->x_resource ("boldFont") >> should return the |
|
|
871 | same value as used by this instance of rxvt-unicode. Returns C<undef> if no |
|
|
872 | resource with that pattern exists. |
|
|
873 | |
|
|
874 | This method should only be called during the C<on_start> hook, as there is |
|
|
875 | only one resource database per display, and later invocations might return |
|
|
876 | the wrong resources. |
|
|
877 | |
865 | =item $success = $term->parse_keysym ($keysym_spec, $command_string) |
878 | =item $success = $term->parse_keysym ($keysym_spec, $command_string) |
866 | |
879 | |
867 | Adds a keymap translation exactly as specified via a resource. See the |
880 | Adds a keymap translation exactly as specified via a resource. See the |
868 | C<keysym> resource in the @@RXVT_NAME@@(1) manpage. |
881 | C<keysym> resource in the @@RXVT_NAME@@(1) manpage. |
869 | |
882 | |