8 ms·
The homepage says: "Fig isn't a standalone terminal. We integrate with the tools that you already use." and then shows 3 icons of terminal applications, includi
by fauria 4y ago
The homepage says: "Fig isn't a standalone terminal. We integrate with the tools that you already use." and then shows 3 icons of terminal applications, including macOS Terminal.
How do they open those dialogs for completing commands on them? Those menus don't seem to be text based, but part of the terminal window GUI.
- ushakov 4y agothey draw them on top of the System UI using accessibility API “hacking”
- kall 4y agoI believe they "hack" accessibility hooks in the OS to position the floating window as if it was part of the app. That part is actually quite impressive and works well. I imagine it's quite a bit of engineering effort to make that not janky. I wonder how hard it is to make cross platform. Maybe other OSes have easier hooks? Easier permissions for sure.