Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Colors in columns not working? #140

Open
dalanmiller opened this issue Mar 27, 2015 · 0 comments
Open

Colors in columns not working? #140

dalanmiller opened this issue Mar 27, 2015 · 0 comments

Comments

@dalanmiller
Copy link

This doesn't seem to be working properly with colors, where just doing puts(join(cs)) works fine. Am I missing something here? The text is outputted, but not colored properly.

skills_text = []
        for skill in (x for x in job['tags'] if x['tag_type'] == "SkillTag"):
            if skill['id'] in user_skill_ids:
                skills_text.append(colored.yellow(skill['name']))
            else:
                skills_text.append(colored.green(skill['name']))

cs = [str(x) for x in skills_text]

...

puts(join(cs))
col = 50
puts(columns([(colored.yellow("SKILLS")),col], [(colored.red("DESCRIPTION")), col]))
puts(columns([(join(cs, conj="", separator="")), col], [desc_text, col]))

screenshot 2015-03-26 23 07 40

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant