kennethreitz / clint

Python Command-line Application Tools
http://pypi.python.org/pypi/clint/
ISC License
95 stars 19 forks source link

Colors in columns not working? #140

Open dalanmiller opened 9 years ago

dalanmiller commented 9 years ago

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