It will take a little homework, but the key is that ANSI escape sequences consist of ordinary ASCII characters (and therefore also UTF-8 characters). Specifically, ANSI escape sequences start with the ESC control character, which is U+001B: http://www.fileformat.info/info/unicode/char/1b/index.htm
> On Mar 27, 2017, at 1:21 AM, Bearcat Şándor <[email protected]> wrote: > > i know this isn't a help channel,but i don't even know where to begin to add > ansi color sequences to my YAML configs. Do you? > > On Sun, Mar 26, 2017 at 10:30 PM Bearcat Şándor <[email protected] > <mailto:[email protected]>> wrote: > That should work great. I didn't realise that the ansi sequences would work. > > On Sun, Mar 26, 2017 at 2:24 PM Adrian Sampson <[email protected] > <mailto:[email protected]>> wrote: > OK, thanks for explaining! For what it’s worth, you can probably accomplish > this already by injecting ANSI color escape sequences directly into your > format strings. For example, this works for me in zsh: > > $ beet ls -f $fg[red]'$artist'$fg[white]' - '$fg[green]'$title’ > > You could also sort out how to concoct the right strings to put in your YAML > config. If you still think built-in support would be better, please do file a > feature request on GitHub with full details! (For example, we’d need a design > for how to specify colors and for how to handle the case when output is not > for a terminal.) > > > >> On Mar 25, 2017, at 2:32 AM, Bearcat Şándor <[email protected] >> <mailto:[email protected]>> wrote: >> >> Or at least green, orange and yellow according to your terminal settings. >> >> >> On Fri, Mar 24, 2017, 23:54 Bearcat Şándor <[email protected] >> <mailto:[email protected]>> wrote: >> Well, say when you do a 'beet ls Beatles' you might want the artist in >> green, the title in orange and the track time in yellow. Depending on the >> fields you have setup in your config of course. >> >> >> On Fri, Mar 24, 2017, 23:14 Adrian Sampson <[email protected] >> <mailto:[email protected]>> wrote: >> Hmm… I’m not quite sure I understand. Where were you imagining the colors >> should appear? >> >>> On Mar 24, 2017, at 6:40 PM, Bearcat Şándor <[email protected] >>> <mailto:[email protected]>> wrote: >>> >>> Would there be a way to have colors on output for format_item and >>> format_album commands? >>> >>> Thanks, >>> >>> Bearcat >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "beets" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected] >>> <mailto:beets-users%[email protected]>. >>> >>> For more options, visit https://groups.google.com/d/optout >>> <https://groups.google.com/d/optout>. >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "beets" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/beets-users/oK1IM1re3K4/unsubscribe >> <https://groups.google.com/d/topic/beets-users/oK1IM1re3K4/unsubscribe>. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] >> <mailto:beets-users%[email protected]>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. >> -- >> Bearcat M. Şándor, CEO >> Feline Soul Systems LLC >> Voice: 872.CAT.SOUL (872.228.7685 <tel:(872)%20228-7685>) >> Fax: 406.235.7070 <tel:(406)%20235-7070> >> >> -- >> Bearcat M. Şándor, CEO >> Feline Soul Systems LLC >> Voice: 872.CAT.SOUL (872.228.7685 <tel:(872)%20228-7685>) >> Fax: 406.235.7070 <tel:(406)%20235-7070> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "beets" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:beets-users%[email protected]>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "beets" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/beets-users/oK1IM1re3K4/unsubscribe > <https://groups.google.com/d/topic/beets-users/oK1IM1re3K4/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > -- > Bearcat M. Şándor, CEO > Feline Soul Systems LLC > Voice: 872.CAT.SOUL (872.228.7685 <tel:(872)%20228-7685>) > Fax: 406.235.7070 <tel:(406)%20235-7070> > -- > Bearcat M. Şándor, CEO > Feline Soul Systems LLC > Voice: 872.CAT.SOUL (872.228.7685) > Fax: 406.235.7070 > > > -- > You received this message because you are subscribed to the Google Groups > "beets" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "beets" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
