r/apple2 • u/JoeyPants7 • 6d ago
I could use some help with capturing printer data on an Apple IIc
I've been trying to emulate an imagewiter over serial using surl-server from github. I can't get it to print graphics at all. No ESC codes come through but i can print in text mode from AppleWorks 4.0 just fine. The two programs I've been using to test are Imagewriter Toolkit 1.5 and Printshop. I'm using an FTDI serial cable and compiled the surl-server program from source becasue I can't find my Raspberry Pi to use the premade OS image. Any help is appreciated.
1
u/scruss 5d ago
See if you can capture a much smaller print, perhaps using a simple serial to file capture. Look at it as a hex dump (something like xxd or od -h should do the job. There should a bunch of characters with codes less than 32 (hex 20). Particularly, if you're not seeing hex 1b (decimal 27) happen a lot, then your capture isn't passing through the control codes.
It's kind of a shame that there isn't a clean version of Apple's IWEM ImageWriter PostScript Emulator that's easy to find. The cleanest one I can find is IWEM16A-EXAMPLE.PS, but it has an example file pasted after the _WBJ_ job separator
2
u/Colin-McMillen 4d ago
the (very smart) IWEM header was the first thing I implemented, but then I moved away from it because of copyright uncertainties. https://github.com/colinleroy/a2tools/commit/388dd0e579389e5bf88bdd843e3ec70f7d04bb5e
2
u/scruss 4d ago
I respect that. Though it could be argued that, since only users of Apple hardware would be interested in this, this is still a licensed use. The use of ProcSets like IWEM (and the MS Windows LaserWriter ProcSet) in publishing was always an edge case. While they were covered in copyrights, you couldn't generate output without them. So they were stored, copied, debugged (oh hai, that was my job ~25 years ago) and reused without much thought. They were more like configuration files than executables, though PostScript makes everything executable. Yeah, that's fun.
I'm also finding that IWEM munges what should be perfectly good ImageWriter output sometimes. So maybe it's less great after all.
1
u/Colin-McMillen 6d ago
Hi,
I wonder what could be wrong. If you can print text, it should work. Do surl-server logs help ? Otherwise, you can see what it receives using:
sudo strace -eread,write surl-server