def print_line(obj="")
      string = obj.to_s

      string = truncate_to_console_width(string) if console_width
      string = strip_ascii_color(string) unless color_enabled?

      write(string + "\n")
      output.flush
    end
def print_line(obj="")
      string = obj.to_s

      string = truncate_to_console_width(string) if console_width
      string = strip_ascii_color(string) unless color_enabled?

      write(string + "\n")
      output.flush
    end
Writes to the IO after first truncating the output to fit the console
 width. If the underlying IO is not a TTY, ANSI colors are removed from
 the output. A newline is always added. Color output can be forced by
 setting the SSHKIT_COLOR environment variable.