func EnableVirtualTerminalProcessing(fd int) error {
	var st uint32
	err := windows.GetConsoleMode(windows.Handle(fd), &st)
	if err != nil {
		return err
	}
	if st&windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING == 0 {
		return windows.SetConsoleMode(windows.Handle(fd), st|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
	}
	return nil
}
func EnableVirtualTerminalProcessing(fd int) error {
	var st uint32
	err := windows.GetConsoleMode(windows.Handle(fd), &st)
	if err != nil {
		return err
	}
	if st&windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING == 0 {
		return windows.SetConsoleMode(windows.Handle(fd), st|windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING)
	}
	return nil
}
// EnableVirtualTerminalProcessing configures the terminal to accept ANSI
// sequences. This is a no-op for all operating systems other than Windows.