disableRawMode method

  1. @override
void disableRawMode()
override

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

Implementation

@override
void disableRawMode() {
  final orig = _origTermIOSPointer;
  if (orig == nullptr) return;
  _origTermIOSPointer = nullptr;
  _tcsetattr(_fd, _TCSANOW, orig);
  _finalizer.detach(this);
  calloc.free(orig);
}