If there's anyone still interested in this, I colored my output like so using the config file:
<https://lh3.googleusercontent.com/-AkfiGbTeFiE/WYc-BU4IQuI/AAAAAAAAAAk/dYeOk0XbfNI6a_ruNeioM5l476OVgTmFACLcBGAs/s1600/colors.png> format_item: "\u001b[92m$artist\u001b[39m - \u001b[31m$album\u001b[39m - \u001b[93m$title\u001b[39m" format_album: "\u001b[92m$albumartist\u001b[39m - \u001b[31m$album\u001b[39m" Am Montag, 27. März 2017 15:20:13 UTC+2 schrieb Adrian Sampson: > > 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] > <javascript:>> 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] > <javascript:>> 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] >> <javascript:>> 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] >>> <javascript:>> wrote: >>> >>> Or at least green, orange and yellow according to your terminal settings. >>> >>> >>> On Fri, Mar 24, 2017, 23:54 Bearcat Şándor <[email protected] >>> <javascript:>> 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] >>> <javascript:>> 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] >>> <javascript:>> 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] <javascript:>. >>> >>> >>> For more options, visit 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. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> -- >>> Bearcat M. Şándor, CEO >>> Feline Soul Systems LLC >>> Voice: 872.CAT.SOUL (872.228.7685) >>> Fax: 406.235.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] <javascript:>. >>> For more options, visit 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. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected] <javascript:>. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> >> Bearcat M. Şándor, CEO >> Feline Soul Systems LLC >> Voice: 872.CAT.SOUL (872.228.7685) >> Fax: 406.235.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] <javascript:>. > For more options, visit 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.
