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.101 by root, Wed Jan 18 10:11:03 2006 UTC vs.
Revision 1.107 by root, Wed Jan 18 21:30:50 2006 UTC

164Uses per-line display filtering (C<on_line_update>) to underline urls and 164Uses per-line display filtering (C<on_line_update>) to underline urls and
165make them clickable. When middle-clicked, the program specified in the 165make them clickable. When middle-clicked, the program specified in the
166resource C<urlLauncher> (default C<x-www-browser>) will be started with 166resource C<urlLauncher> (default C<x-www-browser>) will be started with
167the URL as first argument. 167the URL as first argument.
168 168
169=item automove-background
170
171This is basically a one-line extension that dynamically changes the background pixmap offset
172to the window position, in effect creating the same effect as pseudo transparency with
173a custom pixmap. No scaling is supported in this mode. Exmaple:
174
175 @@RXVT_NAME@@ -pixmap background.xpm -pe automove-background
176
169=item block-graphics-to-ascii 177=item block-graphics-to-ascii
170 178
171A not very useful example of filtering all text output to the terminal, 179A not very useful example of filtering all text output to the terminal,
172by replacing all line-drawing characters (U+2500 .. U+259F) by a 180by replacing all line-drawing characters (U+2500 .. U+259F) by a
173similar-looking ascii character. 181similar-looking ascii character.
433 441
434=item on_focus_out $term 442=item on_focus_out $term
435 443
436Called wheneever the window loses keyboard focus, before rxvt-unicode does 444Called wheneever the window loses keyboard focus, before rxvt-unicode does
437focus out processing. 445focus out processing.
446
447=item on_configure_notify $term, $event
438 448
439=item on_key_press $term, $event, $keysym, $octets 449=item on_key_press $term, $event, $keysym, $octets
440 450
441=item on_key_release $term, $event, $keysym 451=item on_key_release $term, $event, $keysym
442 452
620 my $msg = join "", @_; 630 my $msg = join "", @_;
621 $msg .= "\n" 631 $msg .= "\n"
622 unless $msg =~ /\n$/; 632 unless $msg =~ /\n$/;
623 urxvt::warn ($msg); 633 urxvt::warn ($msg);
624 }; 634 };
625
626 # %ENV is the original startup environment
627 delete $ENV{IFS};
628 delete $ENV{CDPATH};
629 delete $ENV{BASH_ENV};
630 $ENV{PATH} = "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin:/opt/sbin";
631} 635}
632 636
633my $verbosity = $ENV{URXVT_PERL_VERBOSITY}; 637my $verbosity = $ENV{URXVT_PERL_VERBOSITY};
634 638
635sub verbose { 639sub verbose {
949Here is a a likely non-exhaustive list of option names, please see the 953Here is a a likely non-exhaustive list of option names, please see the
950source file F</src/optinc.h> to see the actual list: 954source file F</src/optinc.h> to see the actual list:
951 955
952 borderLess console cursorBlink cursorUnderline hold iconic insecure 956 borderLess console cursorBlink cursorUnderline hold iconic insecure
953 intensityStyles jumpScroll loginShell mapAlert meta8 mouseWheelScrollPage 957 intensityStyles jumpScroll loginShell mapAlert meta8 mouseWheelScrollPage
954 pastableTabs pointerBlank reverseVideo scrollBar scrollBar_floating 958 override-redirect pastableTabs pointerBlank reverseVideo scrollBar
955 scrollBar_right scrollTtyKeypress scrollTtyOutput scrollWithBuffer 959 scrollBar_floating scrollBar_right scrollTtyKeypress scrollTtyOutput
956 secondaryScreen secondaryScroll skipBuiltinGlyphs transparent 960 scrollWithBuffer secondaryScreen secondaryScroll skipBuiltinGlyphs
957 tripleclickwords utmpInhibit visualBell 961 transparent tripleclickwords utmpInhibit visualBell
958 962
959=item $value = $term->resource ($name[, $newval]) 963=item $value = $term->resource ($name[, $newval])
960 964
961Returns the current resource value associated with a given name and 965Returns the current resource value associated with a given name and
962optionally sets a new value. Setting values is most useful in the C<init> 966optionally sets a new value. Setting values is most useful in the C<init>
979 983
980 answerbackstring backgroundPixmap backspace_key boldFont boldItalicFont 984 answerbackstring backgroundPixmap backspace_key boldFont boldItalicFont
981 borderLess color cursorBlink cursorUnderline cutchars delete_key 985 borderLess color cursorBlink cursorUnderline cutchars delete_key
982 display_name embed ext_bwidth fade font geometry hold iconName 986 display_name embed ext_bwidth fade font geometry hold iconName
983 imFont imLocale inputMethod insecure int_bwidth intensityStyles 987 imFont imLocale inputMethod insecure int_bwidth intensityStyles
984 italicFont jumpScroll lineSpace loginShell mapAlert menu meta8 modifier 988 italicFont jumpScroll lineSpace loginShell mapAlert meta8 modifier
985 mouseWheelScrollPage name pastableTabs path perl_eval perl_ext_1 perl_ext_2 989 mouseWheelScrollPage name override_redirect pastableTabs path perl_eval
986 perl_lib pointerBlank pointerBlankDelay preeditType print_pipe pty_fd 990 perl_ext_1 perl_ext_2 perl_lib pointerBlank pointerBlankDelay
987 reverseVideo saveLines scrollBar scrollBar_align scrollBar_floating 991 preeditType print_pipe pty_fd reverseVideo saveLines scrollBar
988 scrollBar_right scrollBar_thickness scrollTtyKeypress scrollTtyOutput 992 scrollBar_align scrollBar_floating scrollBar_right scrollBar_thickness
989 scrollWithBuffer scrollstyle secondaryScreen secondaryScroll selectstyle 993 scrollTtyKeypress scrollTtyOutput scrollWithBuffer scrollstyle
990 shade term_name title transparent transparent_all tripleclickwords 994 secondaryScreen secondaryScroll selectstyle shade term_name title
991 utmpInhibit visualBell 995 transient_for transparent transparent_all tripleclickwords utmpInhibit
996 visualBell
992 997
993=cut 998=cut
994 999
995sub resource($$;$) { 1000sub resource($$;$) {
996 my ($self, $name) = (shift, shift); 1001 my ($self, $name) = (shift, shift);
1588 my $env = $self->{term}->env; 1593 my $env = $self->{term}->env;
1589 # we can't hope to reproduce the locale algorithm, so nuke LC_ALL and set LC_CTYPE. 1594 # we can't hope to reproduce the locale algorithm, so nuke LC_ALL and set LC_CTYPE.
1590 delete $env->{LC_ALL}; 1595 delete $env->{LC_ALL};
1591 $env->{LC_CTYPE} = $self->{term}->locale; 1596 $env->{LC_CTYPE} = $self->{term}->locale;
1592 1597
1593 urxvt::term->new ($env, $self->{term}->resource ("name"), 1598 urxvt::term->new ($env, "popup",
1594 "--perl-lib" => "", "--perl-ext-common" => "", "-pty-fd" => -1, "-sl" => 0, "-b" => 0, 1599 "--perl-lib" => "", "--perl-ext-common" => "",
1600 "-pty-fd" => -1, "-sl" => 0,
1601 "-b" => 1, "-bd" => "grey80", "-bl", "-override-redirect",
1595 "--transient-for" => $self->{term}->parent, 1602 "--transient-for" => $self->{term}->parent,
1596 "-display" => $self->{term}->display_id, 1603 "-display" => $self->{term}->display_id,
1597 "-pe" => "urxvt-popup") 1604 "-pe" => "urxvt-popup")
1598 or die "unable to create popup window\n"; 1605 or die "unable to create popup window\n";
1599} 1606}
1651Start the timer. 1658Start the timer.
1652 1659
1653=item $timer = $timer->start ($tstamp) 1660=item $timer = $timer->start ($tstamp)
1654 1661
1655Set the event trigger time to C<$tstamp> and start the timer. 1662Set the event trigger time to C<$tstamp> and start the timer.
1663
1664=item $timer = $timer->after ($delay)
1665
1666Like C<start>, but sets the expiry timer to c<urxvt::NOW + $delay>.
1656 1667
1657=item $timer = $timer->stop 1668=item $timer = $timer->stop
1658 1669
1659Stop the timer. 1670Stop the timer.
1660 1671

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines