Re: [Fish-users] writing error messages

2017-08-20 Thread Kurtis Rader
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

Re: [Fish-users] writing error messages

2017-08-20 Thread Mark Volkmann
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

Re: [Fish-users] writing error messages

2017-08-20 Thread Glenn Jackman
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

[Fish-users] writing error messages

2017-08-20 Thread Mark Volkmann
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. ---