I read the source of Tmux to find out how it works. He saw that he was using imsg for his IPC, which I had not even heard of. I tried to learn more, but it turned out that imsg is rather difficult for Google and I get a lot of results for iMessage.
I found imsg documentation here , so it looks like an OpenBSD library. I started looking for a Linux implementation but can't find anything. It seems that the author of Tmux has written his own level of compatibility. It surprises me, because imsg seems that it would be really useful. Does Linux have a similar C API for this that I just don't know about?
source share