While I was writing the TerminalCtrl (which is almost finished, I'm polishing the code) I needed an efficient and easy-to-use pseudo-terminal process to test it.
And instead of reinventing the wheel I decided to modifiy the code of LocalProcess.
In time it became a Unix98 style (pretty much standard nowadays) pty process class.
It can run a whole shell (e.g sh or bash) or it can run single app that requires terminal environment.
Currently it is only supported on POSIX range. But I will add Windows ConPty (Windows' new console) support too.
As usual you can access the code from my git repo.