在 byobu 会话中从屏幕分离

cde*_*ker 2 byobu screen

很长一段时间以来,我一直在使用screen分离并让它们在后台运行。然后我发现byobu有多个选项卡式 shell 正在运行。现在我遇到了一个问题,我无法再从screen我的byobu壳内部Ctrl-a-d分离,因为分离的是 byobu 会话而不是其中的screen会话。

我读了几次Ctrl-a应该可以工作,这将使 this Ctrl-a-a-d,但这只是切换选项卡 ( Ctrl-a-a) 然后退出 shell ( Ctrl-d)。

有没有一个简单的解决方案可以再次分离?

Pau*_*aul 9

尝试在第一个 a 之后放开 ctrl,所以顺序是 ctrl-a, a, d。人屏:

   C-a C-a     (other)       Toggle  to  the  window  displayed previously.  Note that this
                             binding defaults to the command character typed twice,  unless
                             overridden.   For instance, if you use the option "-e]x", this
                             command becomes "]]".

   C-a a       (meta)        Send the command character (C-a) to window.  See  escape  com?
                             mand.
Run Code Online (Sandbox Code Playgroud)

或者,如果您为 Byobu 使用 tmux 而不是 screen,请尝试使用 ctrl-a d。Byobu 的默认前缀键是 ctrl-b,因此如果您使用该默认值,则不需要将 ctrl-a 按键加倍。