I usually run a shell within Emacs and use it to ssh to a server where I do my work.
After ssh, I use screen to keep a persistent session running.
However, within the Emacs' shell I cannot use C-a d
to detach
from the screen session.
Question: How do detach from a screen session running within a shell in Emacs?
I was able to detach the screen by preceding the C-a by C-q and adding a Enter at the end of the screen command:
C-qC-adEnter