CP/M PNum

PNum prints a file with line numbers. It doesn’t actually go to the printer; it just shows on the screen.

When it was written, you could press Ctrl-P to turn on printing and then whatever appeared on the screen also went to the printer. When you were done, another Ctrl-P turned printing off again. In unix / MSDOS / Windows / Linux these days, we can redirect output to the printer device using > or a pipe. Or we could send the line-numbered output to a new file and print that one using something simple like Notepad.

This version of the program is part of the old programs for new computers collection. It was written for a 1970s era operating system called CP/M but it has been recompiled to run on Windows computers.

The original program is pnum1.c.

A ZIP which contains the Windows version is pnum.zip.

handheld computing

css.php