Use line buffering to display line by line