Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 5278  / 3 Years ago, thu, september 23, 2021, 12:13:32

In a byobu screen, I ssh'ed into another computer and launched byobu on that computer. Now, I have byobu within byobu.



How can I send byobu keystrokes (F2, F3, F6, etc) to the inner byobu rather than the outer? In other words, how do I escape or otherwise transmit these keys to the screen rather than having the outer byobu intercept them?


More From » screen

 Answers
2

For byobu-within-byobu, you need to know the original, non-f-key bindings for each of the f-key commands.



So for F6, for example, that's really ctrl-a-d for detach.



You can then send the detach signal to the inner session using ctrl-a-a-d. And that scales well with the depth of the nested sessions. So for byobu-within-byobu-within-byobu, you'd use ctrl-a-a-a-d.



There is an alternative, which is what I personally use... You could set a different escape key for the inner byobu. I typically use ctrl-a for the outer one, and ctrl-b for the inner one. In this way, ctrl-a-d would detach the outer session, and ctrl-b-d would detach the inner session.


[#40482] Friday, September 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
irtuallyefu

Total Points: 429
Total Questions: 97
Total Answers: 119

Location: Hong Kong
Member since Tue, Oct 19, 2021
3 Years ago
irtuallyefu questions
;