zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: multios stripping colors?
Date: Wed, 31 Jan 2018 21:11:01 -0800	[thread overview]
Message-ID: <7771fca9-b248-3159-8597-65ddb057214d@eastlink.ca> (raw)

All:

     $   eval "$@"

That line in a function of mine can successfully eat some very complex 
input including various pipes and color codes.  However, when I try this:

$ eval "$@" >&2 >! /tmp/_output

Although I do get both outputs, the screen looses all colorized output 
that was previously there.  As I understand the docs, this might be 
expected at lest in so far as it seems to say that both outputs must be 
created at the same time, thus if there is some reason that color codes 
can't be sent to the file, then they won't be sent to the screen either. 
Is there anything I can do to get my color back?  On the screen at 
least.  I can send color escapes to a file and thecolors show upwhen the 
file is cat-ed, but I'm not sure that the colors as above can be sent to 
a file.  Can they? Seems to me I remember that they can't.


             reply	other threads:[~2018-02-01  5:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-01  5:11 Ray Andrews [this message]
2018-02-01  7:30 ` Oliver Kiddle
2018-02-01 15:52   ` Ray Andrews
2018-02-01 16:34   ` Ray Andrews

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=7771fca9-b248-3159-8597-65ddb057214d@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@zsh.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).