flow text properly in a terminal