Combined from primary sources listed below.
See primary docmentation in context for method t.
method t(IO::CatHandle:D: --> Bool:D)
Calls .t, which tells if the handle is a TTY, on the currently active source handle and returns the result. If the source handle queue has been exhausted, returns False.
(my $f1 = 'foo'.IO).spurt: 'foo';
with IO::CatHandle.new: $f1, $*IN {
repeat { .t.say } while .next-handle; # OUTPUT: «FalseTrue»
}
See primary docmentation in context for method t.