I have some old assembly listing files that are text, paged by formfeed characters. I can't find a way to print nice listings on a modern laser printer/copier. They ignore the formfeeds or print a black box.
Any ideas?
Maybe I could write a program to replace the ff's with a control sequence or something?
Word does it. It fooled me by refusing to let me drag-drop a text file onto the icon, or drag it into a doc, but it does eventually allow a text file to be opened, and printed properly. This is an old 68K assembly program that I need to update to replace an EOL digital capacitor chip. I want a paper listing to scribble on. Just getting all the tools to work was fun.
That isn't a real chain font; the characters are spaced too well horizontally. Drum printers scattered them vertically.
Wordpad (not Notepad) should do the trick. You'll likely want to pick a fixed-width font to ensure the columns (opcode, args, comments) line up pretty.
The 'old typewriter' and dot matrix fonts are easy to find but the creators of the whole programming paradigm didn't anticipate wanting variations like that.
If you have access to a Adobe Indesign there's a free plugin from Beetroot Design called Humane Type that will convert all those sterile perfectly aligned characters into more organic crappy alignment.
It's not ideal and some of the effects look like they were designed by a millenial trying to emulate photocopier distortions rather than typographic variations. A real artist would do each one individually. A real engineer would write a custom script.
The way that "pr" handles that is by adding the correct number of linefeeds at every formfeed character to skip exactly to the next page.
It is a broken approach that falls apart when the printer does auto-wrap too long lines (printers did not do that at the time pr was written...) or when there are other uncontrollable vertical spacing problems.
It normally is the formfeed (FF, hex 0C) character. When the printer does not recognize that, it is unlikely that it recognizes something else.
These days, printers normally do not get fed with plain characters, CR, LF, TAB and FF. The pages get rendered in the computer and get sent in a page description language that is either some printer-dependent thing, or Postscript. The printer is not involved in layout issues anymore.
I can write a program to find formfeeds and replace with some escape sequence that the copier/printer recognizes as a page feed; I just don't know what will work. Googling didn't help.
Actually, I'm not sure that I can actually send a stream of characters to this kind of printer... opened as LPT3: or something. There may be drivers in the way.
Many times now I kind of wish I still had a nice page printer with tractor feed and lots of paper for those long listings... Like we used to do decades ago.
I should not have recycled my big box of tractor feed paper just a few years ago !
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.