See Original text in context
method t(IO::Handle: --> Bool)
Returns True
if the handle is opened to a TTY, False
otherwise.
See Original text in context
method t(IO::CatHandle: --> Bool)
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 may get exhausted, returns False
.
(my = 'foo'.IO).spurt: 'foo';with IO::CatHandle.new: ,