code: func RestoreTerminal(fd uintptr, state *State) error {
  	return winterm.SetConsoleMode(fd, state.mode)
  }
docs: // RestoreTerminal restores the terminal connected to the given file descriptor
  // to a previous state.