Re: DUB colored output proposal/showcase

2018-06-19 Thread Guillaume Piolat via Digitalmars-d
On Friday, 8 June 2018 at 20:35:50 UTC, Jacob Carlborg wrote: On 2018-06-08 15:38, Steven Schveighoffer wrote: Looks excellent! Two thumbs up from me. Is it cross-platform? Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility.

Re: DUB colored output proposal/showcase

2018-06-19 Thread Anton Fediushin via Digitalmars-d
On Tuesday, 19 June 2018 at 19:22:09 UTC, Jacob Carlborg wrote: On 2018-06-09 00:45, gdelazzari wrote: Actually, I was thinking about that too. In fact, what if a user is using a "classic" dark-background theme on macOS's terminal? Or another terminal which by default uses a dark background, l

Re: DUB colored output proposal/showcase

2018-06-19 Thread Jacob Carlborg via Digitalmars-d
On 2018-06-09 00:45, gdelazzari wrote: Actually, I was thinking about that too. In fact, what if a user is using a "classic" dark-background theme on macOS's terminal? Or another terminal which by default uses a dark background, like the one mentioned above? He would get all the colors and the t

Re: DUB colored output proposal/showcase

2018-06-09 Thread gdelazzari via Digitalmars-d
On Saturday, 9 June 2018 at 01:17:26 UTC, Nick Sabalausky wrote: On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote: Take a look at these screenshots: https://imgur.com/a/3RJyd6m Very nice! But related to your motivation for this, I do really wish dub had far less output by default.

Re: DUB colored output proposal/showcase

2018-06-08 Thread Nick Sabalausky via Digitalmars-d
On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote: Take a look at these screenshots: https://imgur.com/a/3RJyd6m Very nice! But related to your motivation for this, I do really wish dub had far less output by default. For example, I don't need to be told over and over that each of

Re: DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
For anyone interested, I'm implementing everything in this branch of my fork. https://github.com/gdelazzari/dub/tree/colored-output Seems like I managed to cleanly substitute the logging module with a brand new one :P actually it's most copy-paste with changes to allow colored output, but yea

Re: DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
On Friday, 8 June 2018 at 20:41:41 UTC, Jacob Carlborg wrote: On 2018-06-08 15:38, Steven Schveighoffer wrote: Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility. I would assume that the theme of the terminal is setup so that

Re: DUB colored output proposal/showcase

2018-06-08 Thread Steven Schveighoffer via Digitalmars-d
On 6/8/18 4:35 PM, Jacob Carlborg wrote: On 2018-06-08 15:38, Steven Schveighoffer wrote: Looks excellent! Two thumbs up from me. Is it cross-platform? Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility. On macOS everyone s

Re: DUB colored output proposal/showcase

2018-06-08 Thread Jacob Carlborg via Digitalmars-d
On 2018-06-08 15:38, Steven Schveighoffer wrote: Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility. I would assume that the theme of the terminal is setup so that all colors (except white and black) work together with the ba

Re: DUB colored output proposal/showcase

2018-06-08 Thread Jacob Carlborg via Digitalmars-d
On 2018-06-08 15:38, Steven Schveighoffer wrote: Looks excellent! Two thumbs up from me. Is it cross-platform? Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility. On macOS everyone should use iTerm :), which has a dark backg

Re: DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
On Friday, 8 June 2018 at 16:33:29 UTC, Basile B. wrote: On Friday, 8 June 2018 at 16:20:12 UTC, gdelazzari wrote: On Friday, 8 June 2018 at 16:11:27 UTC, Basile B. wrote: While this look okay please in the initial PR don't forget to add code to deactivate colors when DUB will be piped. Sure,

Re: DUB colored output proposal/showcase

2018-06-08 Thread Basile B. via Digitalmars-d
On Friday, 8 June 2018 at 16:20:12 UTC, gdelazzari wrote: On Friday, 8 June 2018 at 16:11:27 UTC, Basile B. wrote: While this look okay please in the initial PR don't forget to add code to deactivate colors when DUB will be piped. Sure, I won't forget about that. On Linux (and I guess also Ma

Re: DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
On Friday, 8 June 2018 at 16:11:27 UTC, Basile B. wrote: While this look okay please in the initial PR don't forget to add code to deactivate colors when DUB will be piped. Sure, I won't forget about that. On Linux (and I guess also MacOS) it should be enough to check if stdout is a tty (isatt

Re: DUB colored output proposal/showcase

2018-06-08 Thread Basile B. via Digitalmars-d
On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote: Hello everyone, I'm a new user of the language (I've been playing around with it for some months) and I'm really liking it. [...] I started this thread to have a discussion on this before submitting any pull request (which, in the cas

Re: DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
On Friday, 8 June 2018 at 15:34:06 UTC, Uknown wrote: I love it! I have very little experience with terminal colours, but as far as colourizing text on POSIX its fairly easy. You just need to emit the right ANSI escape sequences [0]. This is what the colorize-d library does.. For Windows before

Re: DUB colored output proposal/showcase

2018-06-08 Thread Johannes Loher via Digitalmars-d
On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote: Hello everyone, I'm a new user of the language (I've been playing around with it for some months) and I'm really liking it. [...] I really like this very much! I think this a great improvement for dub and I believe ist is very Import

Re: DUB colored output proposal/showcase

2018-06-08 Thread Uknown via Digitalmars-d
On Friday, 8 June 2018 at 13:51:05 UTC, gdelazzari wrote: On Friday, 8 June 2018 at 13:38:59 UTC, Steven Schveighoffer wrote: Looks excellent! Two thumbs up from me. Is it cross-platform? Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that

Re: DUB colored output proposal/showcase

2018-06-08 Thread Bastiaan Veelo via Digitalmars-d
On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote: Hello everyone, I'm a new user of the language (I've been playing around with it for some months) and I'm really liking it. [...] Take a look at these screenshots: https://imgur.com/a/3RJyd6m Nice!!

Re: DUB colored output proposal/showcase

2018-06-08 Thread Steven Schveighoffer via Digitalmars-d
On 6/8/18 9:51 AM, gdelazzari wrote: On Friday, 8 June 2018 at 13:38:59 UTC, Steven Schveighoffer wrote: Looks excellent! Two thumbs up from me. Is it cross-platform? Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility. At

Re: DUB colored output proposal/showcase

2018-06-08 Thread Atila Neves via Digitalmars-d
On Friday, 8 June 2018 at 13:35:36 UTC, gdelazzari wrote: Hello everyone, I'm a new user of the language (I've been playing around with it for some months) and I'm really liking it. [...] I like it! Atila

Re: DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
On Friday, 8 June 2018 at 13:38:59 UTC, Steven Schveighoffer wrote: Looks excellent! Two thumbs up from me. Is it cross-platform? Note on some platforms (ahem, Macos) the background is white, so this should be correctly colored for that possibility. -Steve At the moment it's "probably" Linu

Re: DUB colored output proposal/showcase

2018-06-08 Thread Steven Schveighoffer via Digitalmars-d
On 6/8/18 9:35 AM, gdelazzari wrote: Hello everyone, I'm a new user of the language (I've been playing around with it for some months) and I'm really liking it. One minor thing that I didn't particularly like was what (and how) DUB spits out stuff to the terminal, in the sense that I find the

DUB colored output proposal/showcase

2018-06-08 Thread gdelazzari via Digitalmars-d
Hello everyone, I'm a new user of the language (I've been playing around with it for some months) and I'm really liking it. One minor thing that I didn't particularly like was what (and how) DUB spits out stuff to the terminal, in the sense that I find the output a bit difficult to navigate i.