diff --git a/debian/changelog b/debian/changelog index 3c13f3e8..22d781e9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ byobu (5.22) unreleased; urgency=low - change foreground color of free memory percentage to yellow, if its over 90% used - use a better variable name for memory usage + * usr/lib/byobu/custom, usr/share/man/man1/byobu.1: + - fix color for custom scripts; default to no color changes [ Jake Biesinger and Dustin Kirkland ] * usr/share/byobu/keybindings/common, usr/share/byobu/keybindings/f- diff --git a/usr/lib/byobu/custom b/usr/lib/byobu/custom index 378357a1..a071e749 100755 --- a/usr/lib/byobu/custom +++ b/usr/lib/byobu/custom @@ -48,8 +48,8 @@ __custom() { output="$output$(printf "$str")" ;; *) - # Default to inverted coloring - output="$output$(color invert; printf "%s" "$str"; color --)" + # Default coloring + output="$output$str " ;; esac done diff --git a/usr/share/man/man1/byobu.1 b/usr/share/man/man1/byobu.1 index 4d04d755..db543071 100644 --- a/usr/share/man/man1/byobu.1 +++ b/usr/share/man/man1/byobu.1 @@ -37,7 +37,7 @@ The background colors of the \fBbyobu\fP status lines can be adjusted by editing \fBcpu_temp\fP \- the cpu temperature in Celsius (default) or Fahrenheit, configure TEMP=F or TEMP=C in \fI$BYOBU_CONFIG_DIR/statusrc\fP; displayed in the lower bar toward the right in yellow text on a black background; you may override the detected cpu temperature device by setting MONITORED_TEMP=/proc/acpi/whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP -\fBcustom\fP \- user defined custom scripts; must be executable programs of any kind in \fI$BYOBU_CONFIG_DIR/bin\fP; must be named N_NAME, where N is the frequency in seconds to refresh the status indicator, and NAME is the name of the script; N should not be less than 5 seconds; the script should echo a small amount of text to standard out, standard error is discarded; the indicator will be displayed in the lower panel, in inverted colors to your current background/foreground scheme, unless you manually specify the colors in your script's output; BEWARE, cpu-intensive custom scripts may impact your overall system performance and could upset your system administrator! +\fBcustom\fP \- user defined custom scripts; must be executable programs of any kind in \fI$BYOBU_CONFIG_DIR/bin\fP; must be named N_NAME, where N is the frequency in seconds to refresh the status indicator, and NAME is the name of the script; N should not be less than 5 seconds; the script should echo a small amount of text to standard out, standard error is discarded; the indicator will be displayed in the lower panel, in default colors, unless you manually specify the colors in your script's output; BEWARE, cpu-intensive custom scripts may impact your overall system performance and could upset your system administrator! Example: \fI$BYOBU_CONFIG_DIR/bin/1000_uname\fP #!/bin/sh printf "\\005{= bw}%s\\005{\-}" "$(uname \-r)"