Check input device is a terminal: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) Rename Perl 6 -> Raku, alphabetize, minor clean-up |
SqrtNegInf (talk | contribs) m →{{header|Raku}}: Fix code: Perl 6 --> Raku |
||
Line 259: | Line 259: | ||
<lang perl6>say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";</lang> |
<lang perl6>say $*IN.t ?? "Input comes from tty." !! "Input doesn't come from tty.";</lang> |
||
$ |
$ raku istty.raku |
||
Input comes from tty. |
Input comes from tty. |
||
$ true | |
$ true | raku istty.raku |
||
Input doesn't come from tty. |
Input doesn't come from tty. |
||