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
@override
bool kill([ProcessSignal signal = ProcessSignal.sigterm]) {
event_emitter.clear();
return true;
}