This is a concrete use case for libzmx discussion #127. It is a design sketch, not a request that zmx adopt every name or command shown here. We are happy to reshape it around zmx's preferred architecture and contribute the work incrementally.
fmx is an OpenTUI interface for fx. It runs several fx processes and renders each terminal with OpenTUI's libghostty-backed terminal widget. In fmx terminology, one fx process plus its embedded terminal is an Instance.
Today fmx creates and owns a PTY for every Instance: