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

Report output is throwing some wild characters #45

Open pgundlupetvenkatesh opened 1 year ago

pgundlupetvenkatesh commented 1 year ago

My sample.rb

require 'command_line_reporter'
include CommandLineReporter

header title: 'STARTING SCRIPT', width: 80, align: 'center', rule: true, bold: true, timestamp: true

When I run this file ruby sample.rb I see below characters instead of a horizontal line

image

Am I missing on setting any encoders?

Using command_line_reporter v4.0.3, Ruby 2.6.3 on Windows 10

pgundlupetvenkatesh commented 1 year ago

@wbailey Did you get a chance to look at this?

wbailey commented 1 year ago

I believe this is a problem with how Windows 10 terminal is handling the UTF-8 output. It is not specific to command line reporter