kill method
Kill the process running in the pseudo-terminal.
When possible, signal will be sent to the process. This includes
Linux and OS X. The default signal is ProcessSignal.sigterm
which will normally terminate the process.
Implementation
bool kill([ProcessSignal signal = ProcessSignal.sigterm]) {
if (_isDestroyed) return false;
return _bindings.pty_kill(_handle, signal.signalNumber) != 0;
}