… | |
… | |
332 | newline. The module also overwrites the C<warn> builtin with a function |
332 | newline. The module also overwrites the C<warn> builtin with a function |
333 | that calls this function. |
333 | that calls this function. |
334 | |
334 | |
335 | Using this function has the advantage that its output ends up in the |
335 | Using this function has the advantage that its output ends up in the |
336 | correct place, e.g. on stderr of the connecting urxvtc client. |
336 | correct place, e.g. on stderr of the connecting urxvtc client. |
|
|
337 | |
|
|
338 | =item $is_safe = urxvt::safe |
|
|
339 | |
|
|
340 | Returns true when it is safe to do potentially unsafe things, such as |
|
|
341 | evaluating perl code specified by the user. This is true when urxvt was |
|
|
342 | started setuid or setgid. |
337 | |
343 | |
338 | =item $time = urxvt::NOW |
344 | =item $time = urxvt::NOW |
339 | |
345 | |
340 | Returns the "current time" (as per the event loop). |
346 | Returns the "current time" (as per the event loop). |
341 | |
347 | |
… | |
… | |
1209 | |
1215 | |
1210 | local $urxvt::popup::self = $self; |
1216 | local $urxvt::popup::self = $self; |
1211 | |
1217 | |
1212 | urxvt->new ("--perl-lib" => "", "--perl-ext-common" => "", "-pty-fd" => -1, "-sl" => 0, "-b" => 0, |
1218 | urxvt->new ("--perl-lib" => "", "--perl-ext-common" => "", "-pty-fd" => -1, "-sl" => 0, "-b" => 0, |
1213 | "--transient-for" => $self->{term}->parent, |
1219 | "--transient-for" => $self->{term}->parent, |
|
|
1220 | "-display" => $self->{term}->display_id, |
1214 | "-pe" => "urxvt-popup") |
1221 | "-pe" => "urxvt-popup") |
1215 | or die "unable to create popup window\n"; |
1222 | or die "unable to create popup window\n"; |
1216 | } |
1223 | } |
1217 | |
1224 | |
1218 | sub DESTROY { |
1225 | sub DESTROY { |