It's well known that emacs can be used as a terminal emulator (while itself is running in a terminal emulator), thus making it a valid alternative to more traditional terminal-in-a-terminal approaches, such as tmux
or screen
. However, there's one thing that could be done easily with the latter and I've found no alternative in emacs' term
for this one so far.
Both tmux
and screen
can detach from a terminal and all tasks ran in their windows continue to run in background. It's done using C-b, d in tmux
and C-a, d in screen
by default. Later, I can return (reattach) to the terminal I've detached from by running something like tmux attach
or screen -r
. Also, sessions run in both of these terminal multiplexers are persistent - i.e. if I'm connected to some remote terminal and connection fails, I can reconnect and reattach to the terminal without losing any of my work - it really helps in case of faulty network link that occasionally breaks ssh connections.
Is there something like that available for emacs? Basically, I'd want to be able to:
term
buffers intact.Use emacs daemon:
$ emacs --daemon
Then simply launch a new frame, equivalent for screen -x
:
$ emacsclient -t
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With