View Source Weather.Colors (Weather v0.2.5)
Provides ANSI color codes for use in the Weather module.
Summary
Functions
Colorizes a string according to a color code.
Formats and colorizes a temperature.
Prints colorized text with associated color codes.
Prints the current color configuration.
Removes ANSI characters from a given string.
Functions
Colorizes a string according to a color code.
@spec colorize_temp(integer(), Weather.Opts.t()) :: String.t()
Formats and colorizes a temperature.
@spec list() :: :ok
Prints colorized text with associated color codes.
@spec list_current(Weather.Opts.t()) :: :ok
Prints the current color configuration.
Removes ANSI characters from a given string.