code: func NewAnsiReader(nFile int) io.ReadCloser {
  	initLogger()
  	file, fd := winterm.GetStdFile(nFile)
  	return &ansiReader{
  		file:    file,
  		fd:      fd,
  		command: make([]byte, 0, ansiterm.ANSI_MAX_CMD_LENGTH),
  		buffer:  make([]byte, 0),
  	}
  }
docs: // NewAnsiReader returns an io.ReadCloser that provides VT100 terminal emulation on top of a
  // Windows console input handle.