make some attempt to figure out how many characters to display at once