You can pipe the output to a pager, like "more" or "less" as in:
$program | more