View Source Recode.IO (Recode v0.6.5)

This module provides IO functions and contains the color schema for Recode.

Summary

Functions

Similar to write/1, but adds a newline at the end.

Formats a chardata-like argument by converting named ANSI sequences into actual ANSI codes and writes it to :stdio.

Types

@type chardata() ::
  String.t() | maybe_improper_list(char() | chardata(), String.t() | [])
@type color() :: :del | :equal | :file | :info | :ins | :issue | :line_num | :warn

Functions

@spec puts(chardata()) :: :ok

Similar to write/1, but adds a newline at the end.

See IO.ANSI.reverse/0.

See IO.ANSI.reverse_off/0.

@spec write(chardata()) :: :ok

Formats a chardata-like argument by converting named ANSI sequences into actual ANSI codes and writes it to :stdio.