disableRawMode method
Disables raw mode and restores the terminal’s original attributes.
Implementation
@override
void disableRawMode() {
if (_origInputMode case final origInputMode?) {
final restoreMode = configureWindowsRestoreInputMode(origInputMode);
SetConsoleMode(inputHandle, restoreMode);
_origInputMode = null;
}
if (_origOutputMode case final origOutputMode?) {
SetConsoleMode(outputHandle, CONSOLE_MODE(origOutputMode));
_origOutputMode = null;
}
}