docs: def less_display():
      """ Use smoke and mirrors to acquire 'less' for pretty paging """
      # here's some magic. We want the nice paging from 'less', so we write
      # the output to a file and use subprocess to run 'less' on the file.
      # But the file might have sensitive data, so open it in 0600 mode.
      _, filename = tempfile.mkstemp()
      mode = stat.S_IRUSR | stat.S_IWUSR
      outfile = None
      outfile = os.fdopen(os.open(filename, os.O_WRONLY | os.O_CREAT, mode), "wb")
      try:
          yield SmartBuffer(outfile)
          outfile.flush()
          subprocess.call(["less", "-FXR", filename])
      finally:
          if outfile is not None:
              outfile.close()
          if os.path.exists(filename):
              os.unlink(filename)