maddox@ernie.Berkeley.EDU (Carl Greenberg (guest)) (09/21/87)
I have been trying to dump a Hercules screen to an Epson clone printer (after plotting some trigonometric functions on the screen). It works just fine until the actual printing process, where occasionally an extra byte gets thrown in when there are too many bits in the column currently being printed. I can't figure it out; there doesn't appear to be anything in my code that would do that; I'm using the nine-bit image mode (this appears in 8-bit as well) and just fopen'ing PRN and fprintf(prn, "%c%c", bitmap1, bitmap2); fflush(prn); with both bitmaps being unsigned chars. Is turbo C weird about talking to the printer? Anything others may have discovered? A quick algorithm for a screen dump, perhaps? (If I ever get it working, I'll post...) TNX in advance, Carl /----------------------------------v------------------------------------------\ | Carl Greenberg, guest here | "I have a very firm grasp on reality! I | | ARPA: maddox@ernie.berkeley.edu | can reach out and strangle it any time I | | UUCP: ...ucbvax!ucbernie!maddox | want!" - Me |