func (ar *ansiReader) Close() (err error) {
	return ar.file.Close()
}
Close closes the wrapped file.
package windows
import (
	"bytes"
	"errors"
	"fmt"
	"os"
	"strings"
	"unsafe"
	ansiterm "github.com/Azure/go-ansiterm"
	"github.com/Azure/go-ansiterm/winterm"
)
const (
	escapeSequence = ansiterm.KEY_ESC_CSI
)
type ansiReader struct {
	file     *os.File
	fd       uintptr
	buffer   []byte
	cbBuffer int
	command  []byte
}
func newAnsiReader(nFile int) *ansiReader {
	file, fd := winterm.GetStdFile(nFile)
	return &ansiReader{
		file:    file,
		fd:      fd,
		command: make([]byte, 0, ansiterm.ANSI_MAX_CMD_LENGTH),
		buffer:  make([]byte, 0),
	}
}