module MiniHistogram::MiniUnicodePlot::StyledPrinter

Constants

COLOR_DECODE
COLOR_ENCODE
DISABLE_TEXT_STYLE
TEXT_COLORS

Public Instance Methods

color?(out) click to toggle source
# File lib/mini_histogram/plot.rb, line 359
def color?(out)
  (out && out.tty?) || false
end
print_color(out, color, *args) click to toggle source
print_styled(out, *args, bold: false, color: :normal) click to toggle source