iPXE discussion forum
Color in echos - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Color in echos (/showthread.php?tid=29906)



Color in echos - beuk - 2020-09-10 13:29

Hello,

First, many thanks for providing iPXE. I am using it a lot. Smile

I was wondering if there is a way to use colors in echo?

In bash, it is possible to add colors using
Code:
echo -e
and using
Code:
\e[1m\e[38;5;202m
to define a color for example.

Would such a thing be possible in iPXE?

Since I see colors during dhcp request (I built with debug), maybe there is a way...

Need is the following. On some systems, I need to easily display errors or things like this, during iPXE scripts execution. Having colors would be a nice way to express errors, warning, infos, etc.

Thanks a lot!

With my best regards

Beuk