made terminal work with very long strings