--- rxvt-unicode/src/urxvt.pm 2006/01/11 02:13:56 1.79 +++ rxvt-unicode/src/urxvt.pm 2006/01/12 02:20:56 1.84 @@ -87,8 +87,8 @@ =item mark-urls Uses per-line display filtering (C) to underline urls and -make them clickable. When clicked, the program specified in the resource -C (default C) will be started. +make them clickable. When middle-clicked, the program specified in the +resource C (default C) will be started. =item block-graphics-to-ascii @@ -498,6 +498,7 @@ urxvt::warn ($msg); }; + # %ENV is the original startup environment delete $ENV{IFS}; delete $ENV{CDPATH}; delete $ENV{BASH_ENV}; @@ -616,6 +617,18 @@ $retval } +sub exec_async(@) { + my $pid = fork; + + return + if !defined $pid or $pid; + + %ENV = %{ $TERM->env }; + + exec @_; + _exit 255; +} + # urxvt::term::extension package urxvt::term::extension;