From 6a0e829ebbf51b3d868678cc3d6e72971676afb0 Mon Sep 17 00:00:00 2001 From: John Mair Date: Sat, 6 Aug 2011 08:51:56 +1100 Subject: [PATCH] render_output now accepts optional color parameter --- lib/pry/helpers/command_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry/helpers/command_helpers.rb b/lib/pry/helpers/command_helpers.rb index 07f3e57d..55ec103a 100644 --- a/lib/pry/helpers/command_helpers.rb +++ b/lib/pry/helpers/command_helpers.rb @@ -15,9 +15,9 @@ class Pry end # if start_line is not false then add line numbers starting with start_line - def render_output(should_flood, start_line, text) + def render_output(should_flood, start_line, text, color=:blue) if start_line - text = Pry::Helpers::Text.with_line_numbers text, start_line + text = Pry::Helpers::Text.with_line_numbers text, start_line, color end if should_flood