def wrap_string(string, indent = 0)
      first_space = ' ' * indent
      if disable_wrap || !out.tty?
        first_space << string
      else
        require 'io/console'
        columns = out.winsize[1]
        indented = TextWrapper.wrap_with_indent(string, indent, columns)
        first_space << indented
      end
    end
def wrap_string(string, indent = 0)
      first_space = ' ' * indent
      if disable_wrap || !out.tty?
        first_space << string
      else
        require 'io/console'
        columns = out.winsize[1]
        indented = TextWrapper.wrap_with_indent(string, indent, columns)
        first_space << indented
      end
    end
Prints a title taking an optional verbose prefix and
 a relative indentation valid for the UI action in the passed
 block.

 In verbose mode titles are printed with a color according
 to their level. In normal mode titles are printed only if
 they have nesting level smaller than 2.

 @todo Refactor to title (for always visible titles like search)
       and sections (titles that represent collapsible sections).

 @param [String] title
        The title to print

 @param [String] verbose_prefix
        See #message

 @param [FixNum] relative_indentation
        The indentation level relative to the current,
        when the message is printed.