ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/urxvt.pm
(Generate patch)

Comparing rxvt-unicode/src/urxvt.pm (file contents):
Revision 1.78 by root, Wed Jan 11 01:01:52 2006 UTC vs.
Revision 1.82 by root, Thu Jan 12 01:30:53 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines