I'm not sure whether I understood right:
A program prints to the screen, and you want to print it on a printer, but parts of the output scrolled away?
Code:
command > cmd.out
lpr cmd.out