document how to change colors in a custom status script
Bug #568967 reported by
Dustin Kirkland
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Wishlist
|
Unassigned | ||
byobu (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
The man page for 2.71 says, under custom, "the indicator will be displayed in the lower panel, in inverted colors to your current bg/fg scheme, unless you manually specify the colors in your script's output"
How does one manually specify colors in script output?
Let's say I've got a bash or a perl script in ~/.byobu/bin.... what should it print to be red, blue, green, yellow, orange?
Related branches
Changed in byobu: | |
status: | Fix Committed → Fix Released |
Changed in byobu (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Here, put this in an executable ~/.byobu/ bin/100_ uname:
#!/bin/sh
printf "\005{= bw}%s\005{-}" $(uname -r)
The \005 is the escape sequence.
{= bw} says blue background, white text.
{-} says undo the last color change.
See the screen(1) manpage, search for "Colors" to find color codes.