Skip to content

Commit 1812e65

Browse files
committed
Minor IO.ANSI.terminal?/0 documentation improvement
1 parent 7f73cb3 commit 1812e65

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/elixir/lib/io/ansi.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ defmodule IO.ANSI do
3333
Checks whether the default I/O device is a terminal or a file.
3434
3535
Used to identify whether printing ANSI escape sequences will likely
36-
be printed as intended
36+
be printed as intended.
37+
38+
Please note that invoked while in shell (iex) in Erlang/OTP
39+
prior to R16, terminal?/0 will always return false because
40+
Erlang shell did not support ANSI escape sequences up until
41+
R16.
3742
"""
3843
@spec terminal? :: boolean
3944
@spec terminal?(:io.device) :: boolean

0 commit comments

Comments
 (0)