Hi: I run a GNU linux operating system (Slackware 14.0). The problem consists in using the parallel port to get into the Centronics connector of my dot matrix printer and print a plain ASCII file in the printer. But we could make the problem simpler: output redirection to the parallel printer port.
I know this: with an old linux O.S. I did
and I got printer output. That's all I needed. But there is no /dev/lp0 device on my O.S.! What are the parallel printer devices in linux now?
As the printer is programmable, I could make a file with the appropriate control characters and then
Code:
cat control_chars_file > /dev/<printer_device>
A more comfortable scenario would be to write a C program and send the control characters and text to the printer via suitable output instructions. But here I would need to know the proper output instructions, which I do not know.
[I know: I would use the int fprintf(FILE *stream, const char *format, ...) instruction after having associated some output stream with the printer device.]