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.134 by root, Sat Feb 11 02:31:13 2006 UTC vs.
Revision 1.136 by root, Mon Feb 20 20:44:22 2006 UTC

153additionally stores the first match in the current line into the primary 153additionally stores the first match in the current line into the primary
154selection. 154selection.
155 155
156=item readline (enabled by default) 156=item readline (enabled by default)
157 157
158A support package that tries to make editing with readline easier. At the 158A support package that tries to make editing with readline easier. At
159moment, it reacts to clicking with the left mouse button by trying to 159the moment, it reacts to clicking shift-left mouse button by trying to
160move the text cursor to this position. It does so by generating as many 160move the text cursor to this position. It does so by generating as many
161cursor-left or cursor-right keypresses as required (the this only works 161cursor-left or cursor-right keypresses as required (the this only works
162for programs that correctly support wide characters). 162for programs that correctly support wide characters).
163 163
164To avoid too many false positives, this is only done when: 164To avoid too many false positives, this is only done when:
1474=item $env = $term->env 1474=item $env = $term->env
1475 1475
1476Returns a copy of the environment in effect for the terminal as a hashref 1476Returns a copy of the environment in effect for the terminal as a hashref
1477similar to C<\%ENV>. 1477similar to C<\%ENV>.
1478 1478
1479=item @envv = $term->envv
1480
1481Returns the environment as array of strings of the form C<VAR=VALUE>.
1482
1483=item @argv = $term->argv
1484
1485Return the argument vector as this terminal, similar to @ARGV, but
1486includes the program name as first element.
1487
1479=cut 1488=cut
1480 1489
1481sub env { 1490sub env {
1482 if (my $env = $_[0]->_env) {
1483 +{ map /^([^=]+)(?:=(.*))?$/s && ($1 => $2), @$env } 1491 +{ map /^([^=]+)(?:=(.*))?$/s && ($1 => $2), $_[0]->envv }
1484 } else {
1485 +{ %ENV }
1486 }
1487} 1492}
1488 1493
1489=item $modifiermask = $term->ModLevel3Mask 1494=item $modifiermask = $term->ModLevel3Mask
1490 1495
1491=item $modifiermask = $term->ModMetaMask 1496=item $modifiermask = $term->ModMetaMask

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines