disableRawMode method

  1. @override
void disableRawMode()
override

Disables raw mode and restores the terminal’s original attributes.

Implementation

@override
void disableRawMode() {
  if (nullptr == _origTermIOSPointer.cast()) return;
  _tcsetattr(_STDIN_FILENO, _TCSANOW, _origTermIOSPointer);
  calloc.free(_origTermIOSPointer);
  _origTermIOSPointer = nullptr;
}