On Sun, Aug 20, 2017 at 6:02 AM, Mark Volkmann
wrote:
> What is the recommended way to write out error messages from a fish
> function so they appear in the color that has been configured for error
> messages (typically red)? It seems simply writing to stderr is not the
> answer.
>
Glenn's answe
Perfect! That's what I was looking for.
On Sun, Aug 20, 2017 at 5:21 PM, Kurtis Rader wrote:
> On Sun, Aug 20, 2017 at 6:02 AM, Mark Volkmann
> wrote:
>
>> What is the recommended way to write out error messages from a fish
>> function so they appear in the color that has been configured for er
Use the `set_color` command:
$ printf "normal"; set_color red; printf ":ERROR:"; set_color normal; echo
normal
On Sun, Aug 20, 2017 at 9:02 AM, Mark Volkmann
wrote:
> What is the recommended way to write out error messages from a fish
> function so they appear in the color that has been config
What is the recommended way to write out error messages from a fish
function so they appear in the color that has been configured for error
messages (typically red)? It seems simply writing to stderr is not the
answer.
--
R. Mark Volkmann
Object Computing, Inc.
---