code: def _terminal_use_capability(capability_name):
      
      curses.setupterm()
      capability = curses.tigetstr(capability_name)
      if capability:
          sys.stdout.write(_unicode(capability))
      return bool(capability)
docs: If the terminal supports the given capability, output it.  Return whether
      it was output.