You can also sandbox TUIs, with full control of the sandbox parameters. To do this on macOS, you can use: https://multitui.com