wbailey / command_line_reporter

A gem for making it easy to produce a report while a ruby script is executing
Apache License 2.0
432 stars 23 forks source link

Borders not working #12

Closed eriknomitch closed 10 years ago

eriknomitch commented 10 years ago

Hi, my borders are invisible with:

table border: true do
    # ...
end

See this screenshot.

Ubuntu 12.04.4, Ruby 2.1.1, XTerm. Tested with stable and your GitHub master branch.

wbailey commented 10 years ago

Thanks Erik. What happens when you open a pry or irb session and do:

puts "\u2501"

Does that work?

eriknomitch commented 10 years ago

Nope, I get nothing. Maybe XTerm?

wbailey commented 10 years ago

Yeah, sounds like it is not supporting UTF characters. You should see a bar. What happens if you specify ascii?

image

eriknomitch commented 10 years ago

Yeah, I get the same output as you for puts "\u123" but still blank for "\u2501". I guess this isn't so much an issue with command_line_reporter if you're only supporting Unicode.

wbailey commented 10 years ago

What happens when you use the :encoding flag?

 table :border => true, :width => :auto, :encoding => :ascii do
wbailey commented 10 years ago

I am going to close as I hadn't heard anything else back and its seems the issue is UTF-8 support in the terminal.

eriknomitch commented 10 years ago

Sorry. Confirming that that's the case.