It’s Not Enough My original purpose is to control STDIO of a shell process. To accomplish it, I have to do followings. ● Do exec a shell command (e.g. bash) ● Make parent process enter raw-mode ● Connect parent STDIO to child STDIO ● Notify winsize changes from parent to child
pty-shell: Control STDIO of a Shell https://github.com/hibariya/pty-shell Spawns a new shell and connects to its parent’ s STDIO. Then makes the parent act as proxy. Anyway, you can hook the INPUT/OUTPUT of a shell process. For example: you can play any sound effect and/or you can record or share output of the terminal.