I know how to echo text to my HP Deskjet 420 printer on lubuntu with bash:
echo -e "line of text" > /dev/lp0
Is there a way to print text that is bold or in color? Should I echo some sort of escape command to the printer?
The way to echo bold or colored text in a terminal is to use ANSI escape codes. For example, try this:
$ echo -e ‘