Use /dev/ptmx, to get ptmx (master) and pts (slave) file descriptors, then fork and exec shfx as child (+ close ptmx), then close pts as parent. >[!NOTE] > Use `termios(3)` to enable raw mode (implemented in `cursed.c`) (for the slave or master?)