DansDadUK: Thanks for your analysis.
test1: prints as I expect.
test2: I don't understand why I'm getting a blank line
instead of "Red"
I had expected the escape sequence:
to select the CMY palette, and
to change the current color to red, and then print
the word "Red" in red ink, and
to change back to the monochrome palette and select
Why is the 2nd line blank instead of printing the
As far as the <cr><lf> cursor positioning, this is an old program that was set up to print factory work orders on a line printer, ie: print a line of text, do a <cr><lf> and print another line of text, and eventually a <page eject> at the bottom of the page, etc. Several years ago, I "bolded" some of the text by surrounding it with PCL escape sequences (eg: <esc><bold>TEXT<esc><normal>). Now I've been asked to change the color of the text as well. I had hoped I would be able to use the same technique of adding an escape sequence to change the color before the selected text and then a following escape sequence to change the color back to black; eg:
and end up with a work order that looks like the current one, except all the part numbers are now red.