to_string Interface

public interface to_string

Functions

private pure module function to_string_ansi_code(code) result(str)

Transform a color code into an actual ANSI escape sequence

Arguments

Type IntentOptional Attributes Name
type(ansi_code), intent(in) :: code

Color code to be used

Return Value character(len=:), allocatable

ANSI escape sequence representing the color code