I use Byobu with zsh when working on my research. I have many windows open, and often each of them is running a different experiment. When I run an experiment, the experiment executable creates a new folder for the experiment results, which looks like $MELFI0/.polina/2024-09-08-10-09-32-056727, and it outputs it to stdout.
When I browse through the different windows in Byobu, I want to be able to immediately copy that results folder path $MELFI0/.polina/2024-09-08-10-09-32-056727 that was written to stdout in that window. The catch is that the experiment executable is writing a lot of data to stdout, so if I want to find the results folder path, I have to scroll up a lot, and then manually mark it with the caret to copy it. That's quite laborious.
Is there a quicker way to do this? I want to have a setup where I can easily press some kind of key binding (like Ctrl-A R) and the results folder path of the experiment running in the current window is automatically found and copied to Byobu's clipboard.
$ man terminfoas the man -page is visible, type:/ +Status Linesand/status- that might be one way; display the filename within a "status", i.e. on a not-scrolling line.$ tput <command>use./tmp/melfi$TTY:t). You can then retrieve the path easily from within every window.