Packages
io_ansi_table
0.3.2
1.0.40
1.0.39
1.0.38
1.0.37
1.0.36
1.0.34
1.0.33
1.0.32
1.0.31
1.0.30
1.0.29
1.0.28
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.4.32
0.4.31
0.4.30
0.4.29
0.4.28
0.4.27
0.4.26
0.4.25
0.4.24
0.4.23
0.4.22
0.4.21
0.4.20
0.4.19
0.4.18
0.4.17
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.29
0.3.28
0.3.27
0.3.26
0.3.25
0.3.24
0.3.23
0.3.22
0.3.21
0.3.20
0.3.19
0.3.18
0.3.17
0.3.16
0.3.15
0.3.14
0.3.13
0.3.12
0.3.11
0.3.10
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.20
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Writes data to "stdio" in a table with borders and colors. Can choose a table style to change the look of the table.
Current section
Files
Jump to
Current section
Files
config/config.exs
# This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
config :elixir, ansi_enabled: true # to allow mix messages in colors...
# Examples of configuration to provide for the :io_ansi_table app:
#
#
# config :io_ansi_table, headers: [
# "station_id", "observation_time_rfc822", "wind_mph"
# ]
#
#
# config :io_ansi_table, header_fixes: %{
# ~r[ id$]i => " ID",
# ~r[ mph$]i => " MPH",
# ~r[ rfc(\d+)$]i => " RFC-\\1"
# }
#
#
# config :io_ansi_table, align_specs: [
# center: "station_id", right: "wind_mph"
# ]
#
#
# config :io_ansi_table, bell: true
#
#
# config :io_ansi_table, count: 22
#
#
# config :io_ansi_table, margins: [
# top: 1, # line(s) before table
# bottom: 1, # line(s) after table
# left: 3 # space(s) left of table
# ]
# config :io_ansi_table, margins: [
# left: 3 # space(s) left of table
# ]
#
#
# config :io_ansi_table, max_width: 88
#
#
# config :io_ansi_table, sort_specs: [
# "station_id", desc: "wind_mph"
# ]
# config :io_ansi_table, sort_specs: [
# asc: "station_id", desc: "wind_mph"
# ]
#
#
# config :io_ansi_table, sort_symbols: [
# asc: "▲", desc: "▼", pos: :trailing
# ]
# config :io_ansi_table, sort_symbols: [
# asc: "⬆"
# ]
# config :io_ansi_table, sort_symbols: [
# asc: "⬆", desc: "⬇", pos: :leading
# ]
# config :io_ansi_table, sort_symbols: [
# pos: [:leading, :trailing]
# ]
#
#
# config :io_ansi_table, style: :light
config :io_ansi_table, ansi_enabled: true # table formatting in colors
config :io_ansi_table, default_align_specs: [:undefined]
config :io_ansi_table, default_bell: false
config :io_ansi_table, default_count: 11
config :io_ansi_table, default_headers: [:undefined]
config :io_ansi_table, default_header_fixes: %{
" A " => " a ",
" After " => " after ",
" Along " => " along ",
" An " => " an ",
" And " => " and ",
" Around " => " around ",
" At " => " at ",
" But " => " but ",
" By " => " by ",
" For " => " for ",
" From " => " from ",
" Not " => " not ",
" Of " => " of ",
" On " => " on ",
" Or " => " or ",
" So " => " so ",
" The " => " the ",
" To " => " to ",
" With " => " with ",
" Without " => " without ",
" Yet " => " yet "
}
config :io_ansi_table, default_margins: [ # default table position
top: 1, # line(s) before table
bottom: 1, # line(s) after table
left: 2 # space(s) left of table
]
config :io_ansi_table, default_sort_specs: [:undefined]
config :io_ansi_table, default_sort_symbols: [
asc: "↑", desc: "↓", pos: :trailing
]
config :io_ansi_table, default_style: :plain
config :io_ansi_table, max_width_range: 7..99
config :io_ansi_table, options: [
:align_specs, # to align column elements (list)
:bell, # ring the bell? (boolean)
:count, # number of `maps` to format (integer)
:headers, # to identify each column (list)
:header_fixes, # to alter the `headers` (map)
:margins, # to position the table (keyword)
:max_width, # to cap column widths (non_neg_integer)
:sort_specs, # to sort the `maps` (list)
:sort_symbols, # to denote sort direction (keyword)
:style # table style (atom)
]
config :io_ansi_table, row_types: [
:even_row, :odd_row, :row, :row_1, :row_2, :row_3
]
config :io_ansi_table, rule_types: [:top, :separator, :bottom]
config :io_ansi_table, table_styles: [
light: %{
note: "light colors",
rank: 10,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
row: ["│" , "│", "│", nil],
bottom: ["└─", "─┴─", "─┘", "─"]
],
border_attrs: :light_white,
filler_attrs: :normal,
key_attrs: [
top: :normal,
header: [:light_yellow, :underline],
separator: :normal,
row: :light_cyan,
bottom: :normal
],
non_key_attrs: [
top: :normal,
header: :light_yellow,
separator: :normal,
row: :normal,
bottom: :normal
]
},
light_alt: %{
note: "light colors, alternating row colors",
rank: 15,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
even_row: ["│" , "│", "│", nil],
odd_row: ["│" , "│", "│", nil],
bottom: ["└─", "─┴─", "─┘", "─"]
],
border_attrs: :light_white,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
even_row: :light_blue_background,
odd_row: :normal,
bottom: :normal
],
key_attrs: [
top: :normal,
header: [:light_yellow, :underline],
separator: :normal,
even_row: [:light_cyan, :light_blue_background],
odd_row: :light_cyan,
bottom: :normal
],
non_key_attrs: [
top: :normal,
header: :light_yellow,
separator: :normal,
even_row: [:normal, :light_blue_background],
odd_row: :normal,
bottom: :normal
]
},
light_mult: %{
note: "light colors, 3 repeating row colors",
rank: 17,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
row_1: ["│" , "│", "│", nil],
row_2: ["│" , "│", "│", nil],
row_3: ["│" , "│", "│", nil],
bottom: ["└─", "─┴─", "─┘", "─"]
],
border_attrs: :light_white,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
row_1: :light_blue_background,
row_2: :magenta_background,
row_3: :normal,
bottom: :normal
],
key_attrs: [
top: :normal,
header: [:light_yellow, :underline],
separator: :normal,
row_1: [:light_cyan, :light_blue_background],
row_2: [:light_cyan, :magenta_background],
row_3: :light_cyan,
bottom: :normal
],
non_key_attrs: [
top: :normal,
header: :light_yellow,
separator: :normal,
row_1: [:normal, :light_blue_background],
row_2: [:normal, :magenta_background],
row_3: :normal,
bottom: :normal
]
},
medium: %{
note: "medium colors",
rank: 20,
borders: [
# left inner right dash
top: ["╔═", "═╤═", "═╗", "═"],
header: ["║", "│" , "║", nil],
separator: ["╟─", "─┼─", "─╢", "─"],
row: ["║" , "│" , "║", nil],
bottom: ["╚═", "═╧═", "═╝", "═"]
],
border_attrs: :light_yellow,
filler_attrs: :normal,
key_attrs: [
top: :light_yellow,
header: [:light_green, :underline],
separator: :light_yellow,
row: :light_cyan,
bottom: :light_yellow
],
non_key_attrs: [
top: :light_yellow,
header: :light_green,
separator: :light_yellow,
row: :light_yellow,
bottom: :light_yellow
]
},
medium_alt: %{
note: "medium colors, alternating row colors",
rank: 25,
borders: [
# left inner right dash
top: ["╔═", "═╤═", "═╗", "═"],
header: ["║", "│" , "║", nil],
separator: ["╟─", "─┼─", "─╢", "─"],
even_row: ["║" , "│" , "║", nil],
odd_row: ["║" , "│" , "║", nil],
bottom: ["╚═", "═╧═", "═╝", "═"]
],
border_attrs: :light_yellow,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
even_row: :light_blue_background,
odd_row: :normal,
bottom: :normal
],
key_attrs: [
top: :light_yellow,
header: [:light_green, :underline],
separator: :light_yellow,
even_row: [:light_cyan, :light_blue_background],
odd_row: :light_cyan,
bottom: :light_yellow
],
non_key_attrs: [
top: :light_yellow,
header: :light_green,
separator: :light_yellow,
even_row: [:light_yellow, :light_blue_background],
odd_row: :light_yellow,
bottom: :light_yellow
]
},
medium_mult: %{
note: "medium colors, 3 repeating row colors",
rank: 27,
borders: [
# left inner right dash
top: ["╔═", "═╤═", "═╗", "═"],
header: ["║", "│" , "║", nil],
separator: ["╟─", "─┼─", "─╢", "─"],
row_1: ["║" , "│" , "║", nil],
row_2: ["║" , "│" , "║", nil],
row_3: ["║" , "│" , "║", nil],
bottom: ["╚═", "═╧═", "═╝", "═"]
],
border_attrs: :light_yellow,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
row_1: :light_blue_background,
row_2: :magenta_background,
row_3: :normal,
bottom: :normal
],
key_attrs: [
top: :light_yellow,
header: [:light_green, :underline],
separator: :light_yellow,
row_1: [:light_cyan, :light_blue_background],
row_2: [:light_cyan, :magenta_background],
row_3: :light_cyan,
bottom: :light_yellow
],
non_key_attrs: [
top: :light_yellow,
header: :light_green,
separator: :light_yellow,
row_1: [:light_yellow, :light_blue_background],
row_2: [:light_yellow, :magenta_background],
row_3: :light_yellow,
bottom: :light_yellow
]
},
dark: %{
note: "dark colors",
rank: 30,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: :light_green,
filler_attrs: :normal,
key_attrs: [
top: :light_green,
header: [:light_white, :light_red_background],
separator: :light_green,
row: :light_white,
bottom: :light_green
],
non_key_attrs: [
top: :light_green,
header: :light_red,
separator: :light_green,
row: :light_green,
bottom: :light_green
]
},
dark_alt: %{
note: "dark colors, alternating row colors",
rank: 35,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
even_row: ["║" , "║" , "║", nil],
odd_row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: :light_green,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
even_row: :light_blue_background,
odd_row: :normal,
bottom: :normal
],
key_attrs: [
top: :light_green,
header: [:light_white, :light_red_background],
separator: :light_green,
even_row: [:light_white, :light_blue_background],
odd_row: :light_white,
bottom: :light_green
],
non_key_attrs: [
top: :light_green,
header: :light_red,
separator: :light_green,
even_row: [:light_green, :light_blue_background],
odd_row: :light_green,
bottom: :light_green
]
},
dark_mult: %{
note: "dark colors, 3 repeating row colors",
rank: 37,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row_1: ["║" , "║" , "║", nil],
row_2: ["║" , "║" , "║", nil],
row_3: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: :light_green,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
row_1: :light_blue_background,
row_2: :magenta_background,
row_3: :normal,
bottom: :normal
],
key_attrs: [
top: :light_green,
header: [:light_white, :light_red_background],
separator: :light_green,
row_1: [:light_white, :light_blue_background],
row_2: [:light_white, :magenta_background],
row_3: :light_white,
bottom: :light_green
],
non_key_attrs: [
top: :light_green,
header: :light_red,
separator: :light_green,
row_1: [:light_green, :light_blue_background],
row_2: [:light_green, :magenta_background],
row_3: :light_green,
bottom: :light_green
]
},
pretty: %{
note: "multicolored",
rank: 40,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: :light_magenta,
filler_attrs: :normal,
key_attrs: [
top: :light_magenta,
header: [:light_green, :underline],
separator: :light_magenta,
row: :light_cyan,
bottom: :light_magenta
],
non_key_attrs: [
top: :light_magenta,
header: :light_green,
separator: :light_magenta,
row: :light_yellow,
bottom: :light_magenta
]
},
pretty_alt: %{
note: "multicolored, alternating row colors",
rank: 45,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
even_row: ["║" , "║" , "║", nil],
odd_row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: :light_magenta,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
even_row: :light_blue_background,
odd_row: :normal,
bottom: :normal
],
key_attrs: [
top: :light_magenta,
header: [:light_green, :underline],
separator: :light_magenta,
even_row: [:light_cyan, :light_blue_background],
odd_row: :light_cyan,
bottom: :light_magenta
],
non_key_attrs: [
top: :light_magenta,
header: :light_green,
separator: :light_magenta,
even_row: [:light_yellow, :light_blue_background],
odd_row: :light_yellow,
bottom: :light_magenta
]
},
pretty_mult: %{
note: "multicolored, 3 repeating row colors",
rank: 47,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row_1: ["║" , "║" , "║", nil],
row_2: ["║" , "║" , "║", nil],
row_3: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: :light_magenta,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
row_1: :light_blue_background,
row_2: :magenta_background,
row_3: :normal,
bottom: :normal
],
key_attrs: [
top: :light_magenta,
header: [:light_green, :underline],
separator: :light_magenta,
row_1: [:light_cyan, :light_blue_background],
row_2: [:light_cyan, :magenta_background],
row_3: :light_cyan,
bottom: :light_magenta
],
non_key_attrs: [
top: :light_magenta,
header: :light_green,
separator: :light_magenta,
row_1: [:light_yellow, :light_blue_background],
row_2: [:light_yellow, :magenta_background],
row_3: :light_yellow,
bottom: :light_magenta
]
},
cyan: %{
note: "light cyan background",
rank: 50,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:light_blue, :light_cyan_background],
filler_attrs: :light_cyan_background,
key_attrs: [
top: [:light_blue, :light_cyan_background],
header: [:light_yellow, :light_red_background],
separator: [:light_blue, :light_cyan_background],
row: [:light_blue, :light_cyan_background],
bottom: [:light_blue, :light_cyan_background]
],
non_key_attrs: [
top: [:light_blue, :light_cyan_background],
header: [:light_red, :light_cyan_background],
separator: [:light_blue, :light_cyan_background],
row: [:black, :light_cyan_background],
bottom: [:light_blue, :light_cyan_background]
]
},
yellow: %{
note: "light yellow background",
rank: 60,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:green, :light_yellow_background],
filler_attrs: :light_yellow_background,
key_attrs: [
top: [:green, :light_yellow_background],
header: [:light_white, :light_red_background],
separator: [:green, :light_yellow_background],
row: [:light_blue, :light_yellow_background],
bottom: [:green, :light_yellow_background]
],
non_key_attrs: [
top: [:green, :light_yellow_background],
header: [:light_red, :light_yellow_background],
separator: [:green, :light_yellow_background],
row: [:black, :light_yellow_background],
bottom: [:green, :light_yellow_background]
]
},
green: %{
note: "light green background",
rank: 70,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:light_yellow, :light_green_background],
filler_attrs: :light_green_background,
key_attrs: [
top: [:light_yellow, :light_green_background],
header: [:light_yellow, :light_red_background],
separator: [:light_yellow, :light_green_background],
row: [:light_blue, :light_green_background],
bottom: [:light_yellow, :light_green_background]
],
non_key_attrs: [
top: [:light_yellow, :light_green_background],
header: [:light_red, :light_green_background],
separator: [:light_yellow, :light_green_background],
row: [:black, :light_green_background],
bottom: [:light_yellow, :light_green_background]
]
},
cyan_border: %{
note: "light cyan border",
rank: 80,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:light_cyan, :light_cyan_background],
filler_attrs: :normal,
key_attrs: [
top: [:light_cyan, :light_cyan_background],
header: :light_red,
separator: [:light_cyan, :light_cyan_background],
row: :light_cyan,
bottom: [:light_cyan, :light_cyan_background]
],
non_key_attrs: [
top: [:light_cyan, :light_cyan_background],
header: :light_magenta,
separator: [:light_cyan, :light_cyan_background],
row: :normal,
bottom: [:light_cyan, :light_cyan_background]
]
},
yellow_border: %{
note: "light yellow border",
rank: 90,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:light_yellow, :light_yellow_background],
filler_attrs: :normal,
key_attrs: [
top: [:light_yellow, :light_yellow_background],
header: :light_red,
separator: [:light_yellow, :light_yellow_background],
row: :light_yellow,
bottom: [:light_yellow, :light_yellow_background]
],
non_key_attrs: [
top: [:light_yellow, :light_yellow_background],
header: :light_magenta,
separator: [:light_yellow, :light_yellow_background],
row: :normal,
bottom: [:light_yellow, :light_yellow_background]
]
},
green_border: %{
note: "light green border",
rank: 100,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:light_green, :light_green_background],
filler_attrs: :normal,
key_attrs: [
top: [:light_green, :light_green_background],
header: :light_red,
separator: [:light_green, :light_green_background],
row: :light_green,
bottom: [:light_green, :light_green_background]
],
non_key_attrs: [
top: [:light_green, :light_green_background],
header: :light_magenta,
separator: [:light_green, :light_green_background],
row: :normal,
bottom: [:light_green, :light_green_background]
]
},
mixed: %{
note: "fillers revealed",
rank: 110,
borders: [
# left inner right dash
top: ["╔═", "═╦═", "═╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠═", "═╬═", "═╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚═", "═╩═", "═╝", "═"]
],
border_attrs: [:black, :light_yellow_background],
filler_attrs: :light_green_background,
key_attrs: [
top: [:black, :light_yellow_background],
header: [:light_red, :reverse, :light_yellow_background],
separator: [:black, :light_yellow_background],
row: [:light_blue, :light_yellow_background],
bottom: [:black, :light_yellow_background]
],
non_key_attrs: [
top: [:black, :light_yellow_background],
header: [:light_magenta, :light_white_background],
separator: [:black, :light_yellow_background],
row: [:light_black, :light_yellow_background],
bottom: [:black, :light_yellow_background]
]
},
dotted: %{
note: "slightly colored",
rank: 120,
borders: [
# left inner right dash
top: ["┏╍", "╍┳╍", "╍┓", "╍"],
header: ["┇" , "┇" , "┇", nil],
separator: ["┣╍", "╍╋╍", "╍┫", "╍"],
row: ["┇" , "┇" , "┇", nil],
bottom: ["┗╍", "╍┻╍", "╍┛", "╍"]
],
border_attrs: :normal,
filler_attrs: :normal,
key_attrs: [
top: :normal,
header: [:light_white, :green_background],
separator: :normal,
row: :light_green,
bottom: :normal
],
non_key_attrs: :normal,
},
dotted_alt: %{
note: "slightly colored, alternating row colors",
rank: 125,
borders: [
# left inner right dash
top: ["┏╍", "╍┳╍", "╍┓", "╍"],
header: ["┇" , "┇" , "┇", nil],
separator: ["┣╍", "╍╋╍", "╍┫", "╍"],
even_row: ["┇" , "┇" , "┇", nil],
odd_row: ["┇" , "┇" , "┇", nil],
bottom: ["┗╍", "╍┻╍", "╍┛", "╍"]
],
border_attrs: :normal,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
even_row: :light_blue_background,
odd_row: :normal,
bottom: :normal
],
key_attrs: [
top: :normal,
header: [:light_white, :green_background],
separator: :normal,
even_row: [:light_green, :light_blue_background],
odd_row: :light_green,
bottom: :normal
],
non_key_attrs: [
top: :normal,
header: :normal,
separator: :normal,
even_row: [:normal, :light_blue_background],
odd_row: :normal,
bottom: :normal
]
},
dotted_mult: %{
note: "slightly colored, 3 repeating row colors",
rank: 127,
borders: [
# left inner right dash
top: ["┏╍", "╍┳╍", "╍┓", "╍"],
header: ["┇" , "┇" , "┇", nil],
separator: ["┣╍", "╍╋╍", "╍┫", "╍"],
row_1: ["┇" , "┇" , "┇", nil],
row_2: ["┇" , "┇" , "┇", nil],
row_3: ["┇" , "┇" , "┇", nil],
bottom: ["┗╍", "╍┻╍", "╍┛", "╍"]
],
border_attrs: :normal,
filler_attrs: [
top: :normal,
header: :normal,
separator: :normal,
row_1: :light_blue_background,
row_2: :magenta_background,
row_3: :normal,
bottom: :normal
],
key_attrs: [
top: :normal,
header: [:light_white, :green_background],
separator: :normal,
row_1: [:light_green, :light_blue_background],
row_2: [:light_green, :magenta_background],
row_3: :light_green,
bottom: :normal
],
non_key_attrs: [
top: :normal,
header: :normal,
separator: :normal,
row_1: [:normal, :light_blue_background],
row_2: [:normal, :magenta_background],
row_3: :normal,
bottom: :normal
]
},
dashed: %{
note: "no colors",
rank: 130,
borders: [
# left inner right dash
top: ["+-", "-+-", "-+", "-"],
header: ["|" , "|" , "|", nil],
separator: ["+-", "-+-", "-+", "-"],
row: ["|" , "|" , "|", nil],
bottom: ["+-", "-+-", "-+", "-"]
],
border_attrs: :normal,
filler_attrs: :normal,
key_attrs: :normal,
non_key_attrs: :normal
},
plain: %{
note: "slightly colored",
rank: 140,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│" , "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
row: ["│" , "│" , "│", nil],
bottom: ["└─", "─┴─", "─┘", "─"]
],
border_attrs: :light_yellow,
filler_attrs: :normal,
key_attrs: [
top: :light_yellow,
header: [:light_yellow, :underline],
separator: :light_yellow,
row: :light_yellow,
bottom: :light_yellow
],
non_key_attrs: [
top: :light_yellow,
header: :light_yellow,
separator: :light_yellow,
row: :normal,
bottom: :light_yellow
]
},
test: %{
note: "no colors",
rank: 150,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│" , "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
row: ["│" , "│" , "│", nil],
bottom: ["└─", "─┴─", "─┘", "─"]
],
border_attrs: :normal,
filler_attrs: :normal,
key_attrs: :normal,
non_key_attrs: :normal
},
bare: %{
note: "no colors",
rank: 160,
borders: [
# left inner right dash
header: ["", "|" , "", nil],
separator: ["", "-+-", "", "-"],
row: ["", "|" , "", nil]
],
border_attrs: :normal,
filler_attrs: :normal,
key_attrs: :normal,
non_key_attrs: :normal
},
barish: %{
note: "like bare but colored",
rank: 170,
borders: [
# left inner right dash
header: ["", "|" , "", nil],
separator: ["", "-+-", "", "-"],
row: ["", "|" , "", nil]
],
border_attrs: :light_yellow,
filler_attrs: :normal,
key_attrs: [
header: :light_green,
separator: :light_yellow,
row: :light_cyan
],
non_key_attrs: [
header: :normal,
separator: :light_yellow,
row: :normal
]
},
green_padded: %{
note: "like green but with extra padding",
rank: 180,
borders: [
# left inner right dash
top: ["╔══", "══╦══", "══╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠══", "══╬══", "══╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚══", "══╩══", "══╝", "═"]
],
border_attrs: [:light_yellow, :light_green_background],
filler_attrs: :light_green_background,
key_attrs: [
top: [:light_yellow, :light_green_background],
header: [:light_yellow, :light_red_background],
separator: [:light_yellow, :light_green_background],
row: [:light_blue, :light_green_background],
bottom: [:light_yellow, :light_green_background]
],
non_key_attrs: [
top: [:light_yellow, :light_green_background],
header: [:light_red, :light_green_background],
separator: [:light_yellow, :light_green_background],
row: [:black, :light_green_background],
bottom: [:light_yellow, :light_green_background]
]
},
green_unpadded: %{
note: "like green but without padding",
rank: 190,
borders: [
# left inner right dash
top: ["╔", "╦", "╗", "═"],
header: ["║", "║", "║", nil],
separator: ["╠", "╬", "╣", "═"],
row: ["║", "║", "║", nil],
bottom: ["╚", "╩", "╝", "═"]
],
border_attrs: [:light_yellow, :light_green_background],
filler_attrs: :light_green_background,
key_attrs: [
top: [:light_yellow, :light_green_background],
header: [:light_yellow, :light_red_background],
separator: [:light_yellow, :light_green_background],
row: [:light_blue, :light_green_background],
bottom: [:light_yellow, :light_green_background]
],
non_key_attrs: [
top: [:light_yellow, :light_green_background],
header: [:light_red, :light_green_background],
separator: [:light_yellow, :light_green_background],
row: [:black, :light_green_background],
bottom: [:light_yellow, :light_green_background]
]
},
green_border_padded: %{
note: "light green border with extra padding",
rank: 200,
borders: [
# left inner right dash
top: ["╔══", "══╦══", "══╗", "═"],
header: ["║" , "║" , "║", nil],
separator: ["╠══", "══╬══", "══╣", "═"],
row: ["║" , "║" , "║", nil],
bottom: ["╚══", "══╩══", "══╝", "═"]
],
border_attrs: [:light_green, :light_green_background],
filler_attrs: :normal,
key_attrs: [
top: [:light_green, :light_green_background],
header: :light_red,
separator: [:light_green, :light_green_background],
row: :light_green,
bottom: [:light_green, :light_green_background]
],
non_key_attrs: [
top: [:light_green, :light_green_background],
header: :light_magenta,
separator: [:light_green, :light_green_background],
row: :normal,
bottom: [:light_green, :light_green_background]
]
},
green_border_unpadded: %{
note: "light green border without padding",
rank: 210,
borders: [
# left inner right dash
top: ["╔", "╦", "╗", "═"],
header: ["║", "║", "║", nil],
separator: ["╠", "╬", "╣", "═"],
row: ["║", "║", "║", nil],
bottom: ["╚", "╩", "╝", "═"]
],
border_attrs: [:light_green, :light_green_background],
filler_attrs: :normal,
key_attrs: [
top: [:light_green, :light_green_background],
header: :light_red,
separator: [:light_green, :light_green_background],
row: :light_green,
bottom: [:light_green, :light_green_background]
],
non_key_attrs: [
top: [:light_green, :light_green_background],
header: :light_magenta,
separator: [:light_green, :light_green_background],
row: :normal,
bottom: [:light_green, :light_green_background]
]
},
cyan_alt: %{
note: "cyan header, alternating row colors",
rank: 220,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
even_row: ["│" , "│", "│", nil],
odd_row: ["│" , "│", "│", nil]
],
border_attrs: [
top: [:cyan, :cyan_background],
header: [:cyan, :cyan_background],
separator: [:cyan, :cyan_background],
even_row: [:light_cyan, :light_cyan_background],
odd_row: [:light_yellow, :light_yellow_background]
],
filler_attrs: [
top: :cyan_background,
header: :cyan_background,
separator: :cyan_background,
even_row: :light_cyan_background,
odd_row: :light_yellow_background
],
key_attrs: [
top: [:cyan, :cyan_background],
header: [:magenta, :cyan_background, :underline],
separator: [:cyan, :cyan_background],
even_row: [:light_blue, :light_cyan_background],
odd_row: [:light_blue, :light_yellow_background]
],
non_key_attrs: [
top: [:cyan, :cyan_background],
header: [:light_yellow, :cyan_background],
separator: [:cyan, :cyan_background],
even_row: [:black, :light_cyan_background],
odd_row: [:black, :light_yellow_background]
]
},
cyan_mult: %{
note: "cyan header, 3 repeating row colors",
rank: 230,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
row_1: ["│" , "│", "│", nil],
row_2: ["│" , "│", "│", nil],
row_3: ["│" , "│", "│", nil]
],
border_attrs: [
top: [:cyan, :cyan_background],
header: [:cyan, :cyan_background],
separator: [:cyan, :cyan_background],
row_1: [:light_cyan, :light_cyan_background],
row_2: [:light_yellow, :light_yellow_background],
row_3: [:light_green, :light_green_background]
],
filler_attrs: [
top: :cyan_background,
header: :cyan_background,
separator: :cyan_background,
row_1: :light_cyan_background,
row_2: :light_yellow_background,
row_3: :light_green_background
],
key_attrs: [
top: [:cyan, :cyan_background],
header: [:magenta, :cyan_background, :underline],
separator: [:cyan, :cyan_background],
row_1: [:light_blue, :light_cyan_background],
row_2: [:light_blue, :light_yellow_background],
row_3: [:light_blue, :light_green_background]
],
non_key_attrs: [
top: [:cyan, :cyan_background],
header: [:light_yellow, :cyan_background],
separator: [:cyan, :cyan_background],
row_1: [:black, :light_cyan_background],
row_2: [:black, :light_yellow_background],
row_3: [:black, :light_green_background]
]
},
green_alt: %{
note: "green header, alternating row colors",
rank: 240,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
even_row: ["│" , "│", "│", nil],
odd_row: ["│" , "│", "│", nil]
],
border_attrs: [
top: [:green, :green_background],
header: [:green, :green_background],
separator: [:green, :green_background],
even_row: [:light_green, :light_green_background],
odd_row: [:light_yellow, :light_yellow_background]
],
filler_attrs: [
top: :green_background,
header: :green_background,
separator: :green_background,
even_row: :light_green_background,
odd_row: :light_yellow_background
],
key_attrs: [
top: [:green, :green_background],
header: [:magenta, :green_background, :underline],
separator: [:green, :green_background],
even_row: [:light_blue, :light_green_background],
odd_row: [:light_blue, :light_yellow_background]
],
non_key_attrs: [
top: [:green, :green_background],
header: [:light_yellow, :green_background],
separator: [:green, :green_background],
even_row: [:black, :light_green_background],
odd_row: [:black, :light_yellow_background]
]
},
green_mult: %{
note: "green header, 3 repeating row colors",
rank: 250,
borders: [
# left inner right dash
top: ["┌─", "─┬─", "─┐", "─"],
header: ["│" , "│", "│", nil],
separator: ["├─", "─┼─", "─┤", "─"],
row_1: ["│" , "│", "│", nil],
row_2: ["│" , "│", "│", nil],
row_3: ["│" , "│", "│", nil]
],
border_attrs: [
top: [:green, :green_background],
header: [:green, :green_background],
separator: [:green, :green_background],
row_1: [:light_green, :light_green_background],
row_2: [:light_yellow, :light_yellow_background],
row_3: [:light_cyan, :light_cyan_background]
],
filler_attrs: [
top: :green_background,
header: :green_background,
separator: :green_background,
row_1: :light_green_background,
row_2: :light_yellow_background,
row_3: :light_cyan_background
],
key_attrs: [
top: [:green, :green_background],
header: [:magenta, :green_background, :underline],
separator: [:green, :green_background],
row_1: [:light_blue, :light_green_background],
row_2: [:light_blue, :light_yellow_background],
row_3: [:light_blue, :light_cyan_background]
],
non_key_attrs: [
top: [:green, :green_background],
header: [:light_yellow, :green_background],
separator: [:green, :green_background],
row_1: [:black, :light_green_background],
row_2: [:black, :light_yellow_background],
row_3: [:black, :light_cyan_background]
]
}
]
# Comment out to compile debug, info and warn messages...
config :logger, compile_time_purge_level: :error
# Prevents runtime debug, info and warn messages...
config :logger, level: :error
# Listed by ascending log level...
config :logger, :console, colors: [
debug: :light_cyan,
info: :light_green,
warn: :light_yellow,
error: :light_red
]
# import_config "#{Mix.env}.exs"