Build a terminal 2 of 8: a logging shell wrapper with forkpty
Build a small script(1) of your own with Rust and libc: start a child with forkpty, always restore raw mode, forward SIGWINCH, and relay with select. Tests drive real PTYs, and the output is compared byte for byte with macOS script.