ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <havdmeer@ziggo.nl>
To: NTG ConTeXt <ntg-context@ntg.nl>
Subject: Re: coloring the logfile
Date: Thu, 29 Aug 2019 10:25:34 +0200	[thread overview]
Message-ID: <38EED0D8-074D-4200-B13B-C8AF0C963D5F@ziggo.nl> (raw)
In-Reply-To: <259d51d5-84ee-aa0b-f72e-a39b6f25f792@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2453 bytes --]

> On 29/08/19 5:35 PM, Henning Hraban Ramm wrote:
> This will need engine support but is in principle dead easy.

So it seems doable if someone is willing to provide the engine support. I sincerely hope it will be done. With many thanks, of course.

dr. Hans van der Meer


> On 29 Aug 2019, at 09:39, Henri Menke <henrimenke@gmail.com> wrote:
> 
> 
> 
> On 29/08/19 5:35 PM, Henning Hraban Ramm wrote:
>> 
>>> Am 2019-08-28 um 21:54 schrieb Hans van der Meer <havdmeer@ziggo.nl>:
>>> 
>>> Is it possible to force lines  written in the log with \writestatus to have a specific color? The log can be very substantial and it would be nice to have some lines brought to attention by a different color.
>> 
>> As a text file, the log can’t have colors.
>> 
>> Only the output to your terminal could have ANSI color codes.
>> I’d welcome this, too, but then we need additional configuration, color breaks easily on some shells, the feature should adhere to the usual shell variables etc. Don’t know it it would be worth the effort.
> 
> This will need engine support but is in principle dead easy.
> 
> #include <unistd.h>
> 
> if (isatty(fileno(stdout))) {
>    // color
> } else {
>    // no color
> }
> 
>> 
>> Greetlings, Hraban
>> ---
>> https://www.fiee.net
>> http://wiki.contextgarden.net
>> https://www.dreiviertelhaus.de
>> GPG Key ID 1C9B22FD
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 5011 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-08-29  8:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-28 19:54 Hans van der Meer
2019-08-29  5:35 ` Henning Hraban Ramm
2019-08-29  7:39   ` Henri Menke
2019-08-29  8:25     ` Hans van der Meer [this message]
2019-08-29  8:58       ` Taco Hoekwater
2019-08-29 23:37         ` Hans Hagen
2019-08-30  0:30           ` Hans Hagen
2019-08-29 23:38         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=38EED0D8-074D-4200-B13B-C8AF0C963D5F@ziggo.nl \
    --to=havdmeer@ziggo.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).