Copy or Export Byobu screen?

Posted by kmassada on Ask Ubuntu See other posts from Ask Ubuntu or by kmassada
Published on 2012-12-16T10:56:18Z Indexed on 2012/12/16 11:24 UTC
Read the original article Hit count: 565

Filed under:
|
|

One of the best things about byobu is the scrollback feature in a given session.

I have been working on something, and I have tons of lines in the current scrollback session and I want to copy everything to a file, how to??

According to the screen home page, looks like you can do this? but when I'm done I do a search for all those files, can't find them.

   C-a h       (hardcopy)    Write a hardcopy of the current window to the
                             file "hardcopy.n".

   C-a H       (log)         Begins/ends logging of the current window  to
                             the file "screenlog.n".

For the screen commands to work, I have to be in screen mode, I believe, and not sure how to check that?

kenneth@dv7:~$ ps -ef | grep byobu
kenneth  16245 16173  0 05:18 pts/12   00:00:00 grep --color=auto byobu
kenneth  25935     1  0 Dec14 ?        00:21:26 /usr/bin/xfce4-terminal -x byobu-launcher
kenneth  25938 25935  0 Dec14 pts/0    00:00:00 tmux -2 -f /usr/share/byobu/profiles/tmuxrc new-session /usr/bin/byobu-shell
kenneth  25962     1  1 Dec14 ?        00:37:31 tmux -2 -f /usr/share/byobu/profiles/tmuxrc new-session /usr/bin/byobu-shell
kenneth  25963 25962  0 Dec14 pts/1    00:00:00 sh -c /usr/bin/byobu-shell

This is from the byoby man page and I absolutely don't know what it does? I tried, it, and looked around, can't tell.

Ctrl-a ~ - Save the current window's scrollback buffer

there's also enter, copy mode, select with space key, and press enter to copy, I do that, the screen displays gibberish for 10 seconds refreshes, done.

cat >> ~/log.output << COMM
--paste using ctrl a ] I think--  
COMM

this confirms the copy paste works, but when I press enter, nothing get saved to that log file, I've checked, I do have write privileges in my home directory. lol

the select all, from the xfce4-terminal doesn't go far enough, and scrolling back with the mouse, well won't work, no need to try it, I know byobu buffer doesn't work like that.

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about screen