Esteemed comrades, I remember reading ages ago about how graphical programs launched from Plan9's terminal thing (/editor/whatever) replace the window it's in. I would really love a patch for st to do the same. So I could type 'mupdf mything.pdf' and mupdf launches in the same window as st was inhabiting, with st magically returning once mupdf exits.
Does someone with more knowledge of X11 know whether this is likely to be readily do-able? Can you launch an arbitrary X program and say "use this window"? I'm guessing not, but don't really know. There are disadvantages to this approach, the main one being hiding stdout & stderr. But I still think it could be interesting. Nick