Mail Archives: djgpp/2000/07/24/01:56:11
On Sun, 23 Jul 2000, tshep wrote:
> Whenever I enter
> fprintf(stdprn, " my string here");
> the printer does not print. All I get is a blank screen.
What type of printer do you have?
Many printers won't print anything until they see a newline, so try
this:
fprintf(stdprn, " my string here\r\n");
(You need \r\n because stdprn is by default in binary mode.)
Some printers, typically laser printers, won't print anything unless
they see a form-feed character, so try this as well:
fprintf(stdprn, " my string here\r\n\f");
> Could I possibly have the wrong printer as the default or
> is there some unique way of outputting to the printer in
> Djgpp
No, there's nothing unique about printer output in DJGPP.
- Raw text -