byobu-select-profile, byobu-config: improve color selection with more

informative color names and support screen default background/foreground
colors, LP: #500669
This commit is contained in:
Dustin Kirkland 2009-12-29 09:05:15 -06:00
commit e2fdc15953
2 changed files with 4 additions and 11 deletions

View file

@ -142,14 +142,7 @@ def select_color(screen, size, layer):
li = Listbox(height = 8, width = 60, scroll = 1, returnExit = 1)
for choice in commands.getoutput('byobu-select-profile -l').splitlines():
(intensity, color) = choice.split("_")
if choice == "light_grey":
choice_desc = "white"
elif intensity == "dark":
choice_desc = color
else:
choice_desc = "%s (light)" % color
li.append(choice_desc, choice)
li.append(choice, choice)
bb = ButtonBar(screen, ((_("Apply"), "apply"), (_("Cancel"), "cancel", ESC)), compact = 1)

6
debian/changelog vendored
View file

@ -3,9 +3,9 @@ byobu (2.43-0ubuntu1) lucid; urgency=low
* byobu.1: improve putty bug documentation
* profiles/common: monitor windows, showing "@" next to the window name,
but don't print an "Activity" message
* byobu-select-profile: improve color selection with more informative
color names and support screen default background/foreground colors,
LP: #500669
* byobu-select-profile, byobu-config: improve color selection with more
informative color names and support screen default background/foreground
colors, LP: #500669
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 23 Dec 2009 14:01:55 -0600