Running the command (you may need to do
sudo apt-get install pv or equivalent)
cat hanoi.b.out | pv -l -L 10 -q
gives output like
if the window size is big enough.
If not, the output looks like
where the image starts "scrolling down."
Naturally, this begs the question: why does this (mis-)behaviour happen when the window size is too small?