I've been away from Pascal for some time, so realize this may be a dumb question (and, yes, I do believe there are such things), but here goes:
I'm using what reports itself as "Free Pascal Compiler version 3.0.4+dfsg-18ubuntu2 [2018/08/29] for x86_64" and running this on Linux Mint 19 with Cinnamon 3.8.9 and kernel version "4.15.0-42-generic".
I've written a utility that writes many numbered lines as output to the screen (gnome terminal to be specific).
The lines, each of which consists of an arbitrary number of five-character chunks (e.g. '[xxx]') can be quite long, so I have a routine that sets a variable to determine the number of such chunks that will fit on each line without wrapping (which would make the output very confusing to read), and ignore the rest of the line as it isn't really necessary to see more. The number of whole chunks that can be displayed is calculated as ":= ((WindMaxX - 29) div 5);" since I have a 29 character label at the beginning of each row.
I have read that there are known issues with WindMaxX, but the displays come out just fine; if I want to see more chunks on each line, I simply stretch out the terminal screen and rerun my utility.
BUT, BUT: if I try to save the results to a text file by running the utility and redirecting the output (with >) or by using tee (e.g. | tee file), *both* the display and the text in the output file is limited to an 80 column width.
I'm also aware through experimentation that Gnome terminal determines the number of Bytes that can be displayed and incorrectly reports it as the number of characters, but I'm using nothing but Latin characters in UTF-8 format, so don't believe that is an issue; the restriction to 80 characters, though, suggests that somehow using the redirect or tee makes everything default to "standard."
Can anyone tell me what I'm missing here?
Thanks in advance for any advice or suggestions