public readonly property isRunning as Boolean:
Indicates whether the terminal child process is still running.
if terminal.isRunning: terminal.write("exit\n")