Diff
Not logged in

Differences From Artifact [cf302bc974]:

To Artifact [a781bceb64]:


2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
	} else if (strncasecmp(value, "RESET", vlen) == 0) {
	    /*
	     * Reset to the initial mode, whatever that is.
	     */
	    mode = chanInfoPtr->initMode;
	} else {
	    if (interp) {
		TclPrintfResult(interp,
			"bad mode \"%s\" for -inputmode: must be"
			" normal, password, raw, or reset", value);
		Tcl_SetErrorCode(interp, "TCL", "OPERATION", "FCONFIGURE",
			"VALUE", (char *)NULL);
	    }
	    return TCL_ERROR;
	}
	if (SetConsoleMode(chanInfoPtr->handle, mode) == 0) {
	    Tcl_WinConvertError(GetLastError());
	    if (interp != NULL) {
		TclPrintfResult(interp, "couldn't set console mode: %s",







|
<

|
|







2295
2296
2297
2298
2299
2300
2301
2302

2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
	} else if (strncasecmp(value, "RESET", vlen) == 0) {
	    /*
	     * Reset to the initial mode, whatever that is.
	     */
	    mode = chanInfoPtr->initMode;
	} else {
	    if (interp) {
		TclPrintfResult(interp, "bad mode \"%s\" for -inputmode: must be"

			" normal, password, raw, or reset", value);
		TclSetErrorCode(interp, "TCL", "OPERATION", "FCONFIGURE",
			"VALUE");
	    }
	    return TCL_ERROR;
	}
	if (SetConsoleMode(chanInfoPtr->handle, mode) == 0) {
	    Tcl_WinConvertError(GetLastError());
	    if (interp != NULL) {
		TclPrintfResult(interp, "couldn't set console mode: %s",