diff --git a/lib/pry/helpers/text.rb b/lib/pry/helpers/text.rb index ac67b0f2..70ccef83 100644 --- a/lib/pry/helpers/text.rb +++ b/lib/pry/helpers/text.rb @@ -18,11 +18,11 @@ class Pry COLORS.each_pair do |color, value| define_method color do |text| - "\033[0;#{30+value}m#{text}\033[0m" + "\001\033[0;#{30+value}m\002#{text}\001\033[0m\002" end define_method "bright_#{color}" do |text| - "\033[1;#{30+value}m#{text}\033[0m" + "\001\033[1;#{30+value}m\002#{text}\001\033[0m\002" end end @@ -98,4 +98,3 @@ class Pry end end end -