How Can I colored message? #1355
-
I use custom rule:
How can I write in color? I think the remote send must be parameterized somehow, the only question is how? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can include color escape sequences when setting a user variable, just change the last line to this: lf -remote "send $id set user_selected_size \"\033[32m$s\033[0m\"" Note that the inner pair of double quotes has to be escaped, and is required otherwise However the problem is that currently I'm not sure what is the best thing to do in this case. I think it would be nicer if the colors could be handled inside the It might be better to raise this as an actual issue. |
Beta Was this translation helpful? Give feedback.
Yeah that's what I was referring to when I said escape sequences don't work when displaying the ruler, instead the escape character is displayed as
\033
in reverse mode. If you delete that bit of code and then recompilelf
then it should work.So the reasons for displaying escape sequences instead of processing them was:
promptfmt
in the rulerEven now, I'm not sure about that decision.