We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0123edd commit 7f73cb3Copy full SHA for 7f73cb3
lib/elixir/lib/io/ansi.ex
@@ -36,6 +36,7 @@ defmodule IO.ANSI do
36
be printed as intended
37
"""
38
@spec terminal? :: boolean
39
+ @spec terminal?(:io.device) :: boolean
40
def terminal?(device // :erlang.group_leader) do
41
if :erlang.system_info(:otp_release) < 'R16' and
42
Process.whereis(:user) != device do
0 commit comments