Skip to content

Commit

Permalink
Add the IO.t method for testing that a filehandle is opened to a tty.…
Browse files Browse the repository at this point in the history
… (hv2++)
  • Loading branch information
pmichaud committed Sep 24, 2009
1 parent 722f82c commit 8e34da7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/setting/IO.pm
Expand Up @@ -52,6 +52,9 @@ class IO is also {
$!PIO.readall();
}

multi method t() {
$!PIO.isatty;
}
}

multi sub lines(IO $filehandle,
Expand Down

0 comments on commit 8e34da7

Please sign in to comment.