code: def main(opts):
      
      term = Terminal()
      style = Style()
  
      # if the terminal supports colors, use a Style instance with some
      # standout colors (magenta, cyan).
      if term.number_of_colors:
          style = Style(attr_major=term.magenta,
                        attr_minor=term.bright_cyan,
                        alignment=opts['--alignment'])
      style.name_len = term.width - 15
  
      screen = Screen(term, style, wide=opts['--wide'])
      pager = Pager(term, screen, opts['character_factory'])
  
      with term.location(), term.cbreak(), \
              term.fullscreen(), term.hidden_cursor():
          pager.run(writer=echo, reader=term.inkey)
      return 0
docs: Program entry point.