I am currently in a byobu-tmux session and am ssh'ed into a screen session. How do I detach the remote screen session without detaching byobu-tmux session? Some things to note, I can't run byobu-config because I'm on osx and don't have python-newt (w/ snack) installed. And, I've run byobu-ctrl-a in Emacs mode, but that doesn't seem to allow me to ctrl-a d out of the remote screen session.
相关问题
- How can I stop VI from overlapping and hiding the
- tmux script for fast window switching with fzf-tmu
- TMUX Session Won't Import Python Module
- How to get stdout and stderr from a tmux session?
- iTerm 2 not honoring key bindings declared in .tmu
相关文章
- GNU Screen: Environment variables
- Tmux: how do I bind function keys to commands?
- How to preserve emacs colors from regular terminal
- Use gdb to debug MPI in multiple screen windows
- Checking if a Screen of the Specified Name Exists
- Find tmux session that a PID belongs to
- Windows equivalent for Linux “screen” or another a
- Configure tmux scroll speed
I was able to do this by listing all clients inside the current client:
Then detach the remote client (determined based on screen size):
Now I can use my full window size
You need to switch the prefix of your local session if it conflicts with the remote session. For example, if both are using CTRL+A then you'd be in trouble. You can either send a raw command (there's a sequence for that, but I can't remember it), or go the easy route and remap your local session to Ctrl+B, then you can input Ctrl+A that will get routed to the remote session. Also not related to tmux but the ssh connection itself you can input "~." and it'll disconnect from the ssh session. Hope it helps.
perhaps not relevant to tmux but for byobu, I found the following command to be very helpful: detach all sessions except the current one:
/usr/lib/byobu/include/tmux-detach-all-but-current-client
hope this helps
Try letting go of ctrl after the first a, so the sequence is ctrl-a, a, d. Man screen:
Or if you're using tmux instead of screen for Byobu, try just ctrl-a d. Byobu's default prefix key is ctrl-b, so if you're using that default, doubling up the ctrl-a keystroke would not be necessary.
Source: https://askubuntu.com/a/309215/106100
You should be able to double-escape with Ctrl-a.
To send a detach message to the inner byobu-screen session, press:
Ctrl-a Ctrl-a d
Full disclosure: I am the author and maintainer of Byobu.
I've been an avid user of byobu on Linux for the best part of a decade. After struggling with configuring the brew install of byobu on OSX for most of these years, I finally managed to setup my byobu configs in a round about way. First I executed this:
Then I ran the byobu config file:
Finally I cleaned up
Python crashed along the way with a few pop-ups, however, byobu now works for me as it should. I do need to repeat these steps when I want to change config again though... still looking for a cleaner solution.