Well Pieter - I did discover something strange about the colors in
Windows 2008: DOS terminal versus Powershell.

The non-intense colors (values 0 through 7) are actually different
between DOS and Powershell ... I can't find any documentation on this,
but the API documentation is clear, and it seems Powershell behaves
differently to the documentation.

This is not reflected in the intense or 'bright' (ANSI terminology)
colors. So I use those for Windows to make sure the look & feel is
consistent and the non-bright for Unix. Weird huh?

ken.

On Wed, Apr 4, 2012 at 8:17 PM, Pieter van de Bruggen
<[email protected]> wrote:
> Alternate terminal settings (background colors, 16-color vs 256-color
> terminals, standard ANSI colors vs. custom themes) are definitely important
> to consider when building our shared color scheme.  If it turns out that no
> suitable set of colors can be found that plays well across those concerns,
> we may move towards multiple color schemes (e.g. "light", "dark"), or a
> scheme like Git's.
>
> Some autodiscovery may be useful in the future, but I sincerely hope that we
> never have to do anything granular on a per-OS basis.
>
> On Wed, Apr 4, 2012 at 11:11 AM, Ken Barber <[email protected]> wrote:
>>
>> Nice to know - thanks Josh :-).
>>
>> I ponder though, if an abstraction that is color scheme aware like
>> I've done is still viable regardless of the underlying implementation.
>> My main thought is that in the future we may want alternate color
>> scheme support to handle different background types etc.
>>
>> I know for example when I teach the Puppetmaster course I'm often
>> asked to change the color scheme in VIM because of different lighting
>> and visibility. I've also in the past seen long debates because some
>> people prefer to run a white background over a black background. I've
>> also seen people argue that the debug color in Puppet shouldn't be
>> white for this reason :-). This kind of thing can be a holy war type
>> discussion in the end, where middle grounds without compromise are
>> hard to reach.
>>
>> ken.
>>
>> On Wed, Apr 4, 2012 at 6:37 PM, Josh Cooper <[email protected]> wrote:
>> > Hey Ken,
>> >
>> > So yes, win32console[1] is officially deprecated, but the alternative is
>> > ansicon[2], but it is fairly invasive and may affect all cmd processes,
>> > may
>> > require reboots to install, etc. With that said, win32console seems to
>> > work
>> > really well, and was trivial to add support to puppet[3]. So I'm
>> > thinking we
>> > should go the win32console route...
>> >
>> > Josh
>> >
>> > [1] https://github.com/luislavena/win32console
>> > [2] http://adoxa.110mb.com/ansicon/index.html
>> > [3]
>> >
>> > https://github.com/joshcooper/puppet/commit/d4aa2ba415872cf1e37900322f2deb763a186598
>> >
>> > On Wed, Apr 4, 2012 at 9:59 AM, Ken Barber <[email protected]> wrote:
>> >>
>> >> I know win32console was offering similar functionality for ANSI escape
>> >> codes for Windows - but I think last time we looked win32console was
>> >> out of maintenance. Have you found something else since then Josh?
>> >>
>> >> On Wed, Apr 4, 2012 at 5:46 PM, Pieter van de Bruggen
>> >> <[email protected]> wrote:
>> >> > From what I heard yesterday from Josh (and I reserve the right to
>> >> > have
>> >> > mis-understood), Windows gained support for ANSI escapes, meaning we
>> >> > no
>> >> > longer need to special case the `color` setting for Windows.  The
>> >> > module
>> >> > that handles colors in core probably doesn't look that different from
>> >> > the
>> >> > module that handles colors in Facter -- we should try to consolidate
>> >> > the
>> >> > code.
>> >> >
>> >> > As for the colors themselves, I'm working on trying to build up a
>> >> > design
>> >> > vocabulary around them that we can use across our products; I'll let
>> >> > you
>> >> > know when we have something more concrete.
>> >> >
>> >> >
>> >> > On Wed, Apr 4, 2012 at 9:35 AM, Daniel Pittman
>> >> > <[email protected]>
>> >> > wrote:
>> >> >>
>> >> >> On Wed, Apr 4, 2012 at 08:04, Ken Barber <[email protected]> wrote:
>> >> >>
>> >> >> > So I managed to get console colors working for Facter that works
>> >> >> > in
>> >> >> > both Windows & Unix (using ANSI escapes):
>> >> >>
>> >> >> Awesome.  So, in the geordi work the "new console log" output system
>> >> >> was defined, which also supports colour.  It only does Unix, though,
>> >> >> and just gave up on Windows.
>> >> >>
>> >> >> It would be good to look at integrating the two, at least to the
>> >> >> level
>> >> >> of having a copy of the common code between them.
>> >> >>
>> >> >> That is, otherwise, pretty damn awesome - it will make Win32 much
>> >> >> nicer to work with. :)
>> >> >>
>> >> >> --
>> >> >> Daniel Pittman
>> >> >> ⎋ Puppet Labs Developer – http://puppetlabs.com
>> >> >> ♲ Made with 100 percent post-consumer electrons
>> >> >>
>> >> >> --
>> >> >> You received this message because you are subscribed to the Google
>> >> >> Groups
>> >> >> "Puppet Developers" group.
>> >> >> To post to this group, send email to [email protected].
>> >> >> To unsubscribe from this group, send email to
>> >> >> [email protected].
>> >> >> For more options, visit this group at
>> >> >> http://groups.google.com/group/puppet-dev?hl=en.
>> >> >>
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to the Google
>> >> > Groups
>> >> > "Puppet Developers" group.
>> >> > To post to this group, send email to [email protected].
>> >> > To unsubscribe from this group, send email to
>> >> > [email protected].
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/puppet-dev?hl=en.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Puppet Developers" group.
>> >> To post to this group, send email to [email protected].
>> >> To unsubscribe from this group, send email to
>> >> [email protected].
>> >> For more options, visit this group at
>> >> http://groups.google.com/group/puppet-dev?hl=en.
>> >>
>> >
>> >
>> >
>> > --
>> > Josh Cooper
>> > Developer, Puppet Labs
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Puppet Developers" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> > [email protected].
>> > For more options, visit this group at
>> > http://groups.google.com/group/puppet-dev?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Developers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-dev?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-dev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to