Codebase list libio-interactive-perl / 15248e9
Import upstream version 1.023+git20210220.1.fba9188 Debian Janitor 3 years ago
4 changed file(s) with 11 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
5151 "web" : "https://github.com/briandfoy/io-interactive"
5252 }
5353 },
54 "version" : "1.023",
54 "version" : "1.024",
5555 "x_serialization_backend" : "JSON::PP version 4.04"
5656 }
2323 bugtracker: https://github.com/briandfoy/io-interactive/issues
2424 homepage: https://github.com/briandfoy/io-interactive
2525 repository: https://github.com/briandfoy/io-interactive.git
26 version: '1.023'
26 version: '1.024'
2727 x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
11
22 =encoding utf8
33
4 =for HTML <a href="../../actions?query=workflow%3Amacos"><img src="../../workflows/macos/badge.svg"></a>
4 =for HTML <a href="https://www.github.com/briandfoy/io-interactive/actions?query=workflow%3Amacos"><img src="https://www.github.com/briandfoy/io-interactive/workflows/macos/badge.svg"></a>
55
6 =for HTML <a href="../../actions?query=workflow%3Aubuntu"><img src="../../workflows/ubuntu/badge.svg"></a>
6 =for HTML <a href="https://www.github.com/briandfoy/io-interactive/actions?query=workflow%3Aubuntu"><img src="https://www.github.com/briandfoy/io-interactive/workflows/ubuntu/badge.svg"></a>
77
8 =for HTML <a href="../../actions?query=workflow%3Awindows"><img src="../../workflows/windows/badge.svg"></a>
8 =for HTML <a href="https://www.github.com/briandfoy/io-interactive/actions?query=workflow%3Awindows"><img src="https://www.github.com/briandfoy/io-interactive/workflows/windows/badge.svg"></a>
99
1010 =for HTML <a href='https://ci.appveyor.com/project/briandfoy/io-interactive'><img src='https://ci.appveyor.com/api/projects/status/nxocrwut3tcni3ei' /></a>
1111
33 use strict;
44 use warnings;
55
6 $IO::Interactive::VERSION = '1.023';
6 $IO::Interactive::VERSION = '1.024';
77
88 sub is_interactive {
99 my ($out_handle) = (@_, select); # Default to default output handle
186186
187187 as it takes into account the magic behaviour of C<*ARGV>.
188188
189 You can also pass C<is_interactive> a writable filehandle, in which case it
190 requires that filehandle be connected to a terminal (instead of the
191 currently selected). The usual suspect here is C<*STDERR>:
189 You can also pass C<is_interactive> a writable filehandle, in which
190 case it requires that filehandle be connected to a terminal (instead
191 of the currently selected). The usual suspect here is C<*STDERR>:
192192
193193 if ( is_interactive(*STDERR) ) {
194194 carp $warning;
195195 }
196196
197 Note that C<is_interactive> may return true in a Windows Scheduled
198 Task. See Github #6 (https://github.com/briandfoy/io-interactive/issues/6).
197199
198200 =item C<interactive()>
199201