On Sun, Aug 20, 2017 at 6:02 AM, Mark Volkmann <r.mark.volkm...@gmail.com>
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 answer works but if you want to ensure you're using whatever color
standard fish code uses you should use the `$fish_color_error` variable;
e.g., `echo (set_color $fish_color_error)my error message(set_color normal)
>&2`.


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to