Module: PrettyTrace::Colors

Included in:
BacktraceItem, Handler
Defined in:
lib/pretty_trace/colors.rb

Instance Method Summary collapse

Instance Method Details

#colorsObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pretty_trace/colors.rb', line 3

def colors
  {
    reset:   "\e[0m",
    bold:    "\e[1m",
    black:   "\e[30m",    black_bold:   "\e[1;30m",
    red:     "\e[31m",    red_bold:     "\e[1;31m",
    green:   "\e[32m",    green_bold:   "\e[1;32m",
    yellow:  "\e[33m",    yellow_bold:  "\e[1;33m",
    blue:    "\e[34m",    blue_bold:    "\e[1;34m",
    magenta: "\e[35m",    magenta_bold: "\e[1;35m",
    cyan:    "\e[36m",    cyan_bold:    "\e[1;36m",
    white:   "\e[37m",    white_bold:   "\e[1;37m",
  }
end