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.84 by root, Thu Jan 12 02:20:56 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 middle-clicked, the program specified in the
91resource 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
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}
610 # clear package 613 # clear package
611 %$TERM = (); 614 %$TERM = ();
612 } 615 }
613 616
614 $retval 617 $retval
618}
619
620sub exec_async(@) {
621 my $pid = fork;
622
623 return
624 if !defined $pid or $pid;
625
626 %ENV = %{ $TERM->env };
627
628 exec @_;
629 _exit 255;
615} 630}
616 631
617# urxvt::term::extension 632# urxvt::term::extension
618 633
619package urxvt::term::extension; 634package urxvt::term::extension;
860 my ($self, $name) = (shift, shift); 875 my ($self, $name) = (shift, shift);
861 unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0); 876 unshift @_, $self, $name, ($name =~ s/\s*\+\s*(\d+)$// ? $1 : 0);
862 &urxvt::term::_resource 877 &urxvt::term::_resource
863} 878}
864 879
880=item $value = $term->x_resource ($pattern)
881
882Returns the X-Resource for the given pattern, excluding the program or
883class name, i.e. C<< $term->x_resource ("boldFont") >> should return the
884same value as used by this instance of rxvt-unicode. Returns C<undef> if no
885resource with that pattern exists.
886
887This method should only be called during the C<on_start> hook, as there is
888only one resource database per display, and later invocations might return
889the wrong resources.
890
865=item $success = $term->parse_keysym ($keysym_spec, $command_string) 891=item $success = $term->parse_keysym ($keysym_spec, $command_string)
866 892
867Adds a keymap translation exactly as specified via a resource. See the 893Adds a keymap translation exactly as specified via a resource. See the
868C<keysym> resource in the @@RXVT_NAME@@(1) manpage. 894C<keysym> resource in the @@RXVT_NAME@@(1) manpage.
869 895

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines