byobu-janitor: seed the default color choices more effciently, also

fixes some strange crashes on first run; default the colors to white
on black
This commit is contained in:
Dustin Kirkland 2010-01-11 14:59:26 -06:00
commit c50607b2d7
3 changed files with 6 additions and 4 deletions

View file

@ -59,7 +59,7 @@ fi
# Affects: First runs with no configuration
# Seed the configuration
[ -d "$HOME/.$PKG" ] || mkdir -p "$HOME/.$PKG"
[ -r "$HOME/.$PKG/color" ] || byobu-select-profile -b W -f k >/dev/null 2>&1
[ -r "$HOME/.$PKG/color" ] || printf "BACKGROUND=w\nFOREGROUND=k" > "$HOME/.$PKG/color"
[ -r "$PROFILE" ] || ln -sf /usr/share/$PKG/profiles/common "$PROFILE"
# Affects: Symlinks pointing to color profiles

View file

@ -98,10 +98,10 @@ prompt() {
echo
if [ "$which" = "foreground" ]; then
echo `gettext 'Select the foreground color: '`
simple="default"
simple="white"
else
echo `gettext 'Select the background color: '`
simple="default"
simple="black"
fi
i=1
for x in $COLORS; do

4
debian/changelog vendored
View file

@ -1,6 +1,8 @@
byobu (2.46) unreleased; urgency=low
* UNRELEASED
* byobu-janitor: seed the default color choices more effciently, also
fixes some strange crashes on first run; default the colors to white
on black
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 07 Jan 2010 21:53:14 -0600