code: func redirectPager(ctx context.Context, subtree tree.Tree) (io.Writer, *bytes.Buffer) {
  	if ctxutil.IsNoPager(ctx) {
  		return stdout, nil
  	}
  	rows, _ := termutil.GetTermsize()
  	if rows <= 0 {
  		return stdout, nil
  	}
  	if subtree == nil || subtree.Len() < rows {
  		return stdout, nil
  	}
  	color.NoColor = true
  	buf := &bytes.Buffer{}
  	return buf, buf
  }
docs: // redirectPager returns a redirected io.Writer if the output would exceed
  // the terminal size