Setting Custom Logo in Hard Status

Asked by a cameron

The Byobu manual is pretty clear about where one can go to create a custom logo to be displayed in the hardstatus line.

" logo - an approximation of the current operating system's logo; displayed in the lower bar on the far left; you may customize this logo by setting a chosen logo in $HOME/.byobu/logo, or you may override this with LOGO=:-D in $HOME/.byobu/statusrc "

It doesn't mention that the logo file disappears from your $HOME/.byobu directory after the configuration of byobu is reloaded.
This surprised me as I was trying to create my own custom logo with colors in it and was playing with the file. I made a logo.bak file so I could keep track of my changes.

The manual also didn't state how to put colors into the logo either, but after some trial and error I came up with this one line in my logo file, including quotes:

"$(color b B w)COOLNAME"

The colors can be changed by modifying the letters 'b B w' - that setup gives you a background of blue with white text ('COOLNAME') on it.
'b Y g' - gives a brown background with green text.

I made guesses as too the correct color codes and thru trial and error found what I wanted.

I guess my question would be: is this the right way to setup my custom logo? and where do I find the list of color codes?

Question information

Language:
English Edit question
Status:
Answered
For:
byobu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dustin Kirkland  (kirkland) said :
#1

The color codes themselves are in screen's manual, 'man screen', or
http://manpages.ubuntu.com/screen.

What do you mean "after the configuration of byobu is reloaded"? When
did it disappear? I see a bug, now, if you add these to
~/.byobu/status, and then use byobu-config (F9) to change something.
I can dupe this question over to a real bug, if this is the issue you
see.

As for colors, what version of byobu are you looking at? byobu -v
will tell you. The latest byobu man page has an example, under the
"custom" section. I can add a new section, if you like, though.

Revision history for this message
a cameron (aslcameron) said :
#2

Thanks for the quick answer, I really appreciate all the work that has been done on this project.

I should have mentioned the information you asked for when I first asked about this.

What I was doing was editing the logo file from a shell within byobu, and then using the byobu-config menu (f9) to change something and force the reload. Exactly as you deduced.

The version of byobu I am using is on a ubuntu 10.04 server install :

byobu version 2.68
Screen version 4.00.03jw4 (FAU) 2-May-06

So if having the logo file disappear when someone reloads it from within byobu isn't a desired behaviour then I guess I found a bug ;).

On the color thing, I looked at the source for the logo portion of byobu and from there I extracted the little bit of code:
"$(color b B w)"
that I used to make my custom logo colorful. I looked at how other logos were setup, and experimented.

In the screen manual I didn't find reference specifically to that format for colors - I'm guessing the 'b' is background, the 'B' is blue for the background and the 'w' is white for the text. That works for me. I don't know though why with "$(color b Y g)" I wind up with green on brown instead of green on yellow. I am happy with green on brown, but I wish I understood better.

The section in the screen man page you linked that I found discussing colors was :
SGR E[nm Set character attributes:
and it included a table based on integers not letters. The man pages that I looked at elsewhere for screen when I was first setting this up was similar. It could be that I'm misreading something, or not understanding how those numbers translate to letters, I don't know.
The thing of it is, I'm sure somewhere when I've been looking for this information I found something that referenced stuff like the above 'b Y g' or 'b B w' but my brain can't seem to pull it up again. I asked both questions really to: One to see if I was doing this correctly - though nice to find the bug, and Two to get some direction on the letters to colors values for the "$(color.." statement.

Again I really appreciate the work that has been done on the byobu program.
thanks
adrian

Can you help with this problem?

Provide an answer of your own, or ask a cameron for more information if necessary.

To post a message you must log in.