You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: term_windows.go
    path of file: ./repos/malice/vendor/github.com/docker/docker/pkg/term
    
    the code of the file until where you have to start completion: // +build windows

package term

import (
	"io"
	"os"
	"os/signal"
	"syscall"

	"gith
    
func SetRawTerminalOutput(fd uintptr) (*State, error) {
	state, err := SaveState(fd)
	if err != nil {
		return nil, err
	}

	// Ignore failures, since disableNewlineAutoReturn might not be supported on this
	// version of Windows.
	winterm.SetConsoleMode(fd, state.mode|disableNewlineAutoReturn)
	return state, err
}