Browse Source

error in LIGHT_TEXT_RED

main
pvincent 2 months ago
parent
commit
6769cad0d9
  1. 3
      lib/semantic/ansi_colors.rb
  2. 4
      lib/semantic/basic_formatter.rb

3
lib/semantic/ansi_colors.rb

@ -42,6 +42,9 @@ module Semantic
DARK_TEXT_CYAN = "\e[96m".freeze DARK_TEXT_CYAN = "\e[96m".freeze
DARK_TEXT_WHITE = "\e[97m".freeze DARK_TEXT_WHITE = "\e[97m".freeze
# LIGHT TEXT
LIGHT_TEXT_RED = "\e[38;5;9m".freeze
# BACKGROUND # BACKGROUND
BG_BLACK = "\e[40m".freeze BG_BLACK = "\e[40m".freeze
BG_WHITE = "\e[47m".freeze BG_WHITE = "\e[47m".freeze

4
lib/semantic/basic_formatter.rb

@ -12,8 +12,8 @@ module Semantic
debug: TEXT_GRAY_400, debug: TEXT_GRAY_400,
info: TEXT_GREEN, info: TEXT_GREEN,
warn: TEXT_YELLOW, warn: TEXT_YELLOW,
error: TEXT_COLOR_ORANGE,
fatal: TEXT_RED
error: LIGHT_TEXT_RED,
fatal: TEXT_MAGENTA
)) ))
@time_format = File.exist?(File.join(Rails.root, 'Procfile.dev')) ? nil : '%H:%M:%S' @time_format = File.exist?(File.join(Rails.root, 'Procfile.dev')) ? nil : '%H:%M:%S'
end end

Loading…
Cancel
Save