Import upstream version 1.023+git20210220.1.fba9188
Debian Janitor
3 years ago
51 | 51 |
"web" : "https://github.com/briandfoy/io-interactive"
|
52 | 52 |
}
|
53 | 53 |
},
|
54 | |
"version" : "1.023",
|
|
54 |
"version" : "1.024",
|
55 | 55 |
"x_serialization_backend" : "JSON::PP version 4.04"
|
56 | 56 |
}
|
23 | 23 |
bugtracker: https://github.com/briandfoy/io-interactive/issues
|
24 | 24 |
homepage: https://github.com/briandfoy/io-interactive
|
25 | 25 |
repository: https://github.com/briandfoy/io-interactive.git
|
26 | |
version: '1.023'
|
|
26 |
version: '1.024'
|
27 | 27 |
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
|
1 | 1 |
|
2 | 2 |
=encoding utf8
|
3 | 3 |
|
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>
|
5 | 5 |
|
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>
|
7 | 7 |
|
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>
|
9 | 9 |
|
10 | 10 |
=for HTML <a href='https://ci.appveyor.com/project/briandfoy/io-interactive'><img src='https://ci.appveyor.com/api/projects/status/nxocrwut3tcni3ei' /></a>
|
11 | 11 |
|
3 | 3 |
use strict;
|
4 | 4 |
use warnings;
|
5 | 5 |
|
6 | |
$IO::Interactive::VERSION = '1.023';
|
|
6 |
$IO::Interactive::VERSION = '1.024';
|
7 | 7 |
|
8 | 8 |
sub is_interactive {
|
9 | 9 |
my ($out_handle) = (@_, select); # Default to default output handle
|
|
186 | 186 |
|
187 | 187 |
as it takes into account the magic behaviour of C<*ARGV>.
|
188 | 188 |
|
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>:
|
192 | 192 |
|
193 | 193 |
if ( is_interactive(*STDERR) ) {
|
194 | 194 |
carp $warning;
|
195 | 195 |
}
|
196 | 196 |
|
|
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).
|
197 | 199 |
|
198 | 200 |
=item C<interactive()>
|
199 | 201 |
|