Module

IO

Changes by version

Elixir 1.19.2

· 1 change

Bugfix Tool: Elixir

Fix dialyzer warning on IO.inspect :label

Elixir 1.17.0

· 1 change

Hard Deprecation Tool: Elixir

Passing :all to IO.read/2 and IO.binread/2 is deprecated, pass :eof instead

Elixir 1.16.0

· 1 change

Bugfix Tool: Elixir

Raise when using IO.binwrite/2 on terminated device (mirroring IO.write/2)

Elixir 1.14.0

· 2 changes

Enhancement Tool: Elixir

Support Macro.Env and keywords as stacktrace definitions in IO.warn/2

Enhancement Tool: Elixir

Add IO.ANSI.syntax_colors/0 and related configuration to be shared across IEx and dbg

Elixir 1.13.0

· 2 changes

Enhancement Tool: Elixir

Allow :eof to be given as limit to IO.getn/2

Enhancement Tool: Elixir

:all on IO.getn is deprecated in favor of :eof

Elixir 1.12.0

· 1 change

Enhancement Tool: Elixir

Add IO.stream/0 and IO.binstream/0 which default to STDIO with line orientation

Elixir 1.4.0

· 1 change

Enhancement Tool: Elixir

Add :label option to IO.inspect/2 to help distinguish multiple IO.inspect/2 calls.

Elixir 1.3.0

· 1 change

Enhancement Tool: Elixir

Add IO.warn/2 that will print a warning message with stacktrace and notify the compiler a warning was printed (in case --warnings-as-errors was enabled)

Elixir 1.2.0

· 1 change

Enhancement Tool: Elixir

Add color related functions to IO.ANSI

Elixir 1.1.0

· 1 change

Enhancement Tool: Elixir

Support fenced code blocks on IO.ANSI.Docs

Elixir 1.0.5

· 1 change

Enhancement Tool: Elixir

Read 4K blocks instead of lines in IO.binread/2. This fixes a bug where CRLF were being ignored and is also going to improve performance

Elixir 1.0.3

· 2 changes

Enhancement Tool: Elixir

Make IO.ANSI.Docs readable on white background

Enhancement Tool: Elixir

Fix IO.ANSI.Docs handling of *, **, _ where they would be activated in the middle of words

Elixir 0.15.0

· 2 changes

Enhancement Tool: Elixir

IO.ANSI.terminal? is deprecated in favor of IO.ANSI.enabled?

Enhancement Tool: Elixir

IO.ANSI.escape/2 and IO.ANSI.escape_fragment/2 is deprecated in favor of IO.ANSI.format/2 and IO.ANSI.format_fragment/2

Elixir 0.14.3

· 1 change

Enhancement Tool: Elixir

Add IO.(bin)read(device, :all)

Elixir 0.11.0

· 1 change

Enhancement Tool: Elixir

Add specs and allow some IO APIs to receive any data that implements String.Chars

Elixir 0.10.2

· 3 changes

Enhancement Tool: Elixir

Added support to specifying a number of bytes to stream to IO.stream, IO.binstream, File.stream! and File.binstream!

Enhancement Tool: Elixir

IO.stream(device) and IO.binstream(device) are deprecated in favor of IO.stream(device, :line) and IO.binstream(device, :line)

Enhancement Tool: Elixir

IO functions now only accept iolists as arguments