[fpc-pascal] terminal width/height

David Emerson dle3ab at angelbase.com
Sat May 14 01:56:41 CEST 2005


Hi all,

Is there a function to query the terminal width and height, as a number of characters?

For example, in windows 98, the terminal is always 80 characters wide, but the height varies; in linux, the height and width can both change, even while the program is running. I'm throwing some text up on the screen and would like to be able to format it to fit the terminal width and height.

Thanks,
David








More information about the fpc-pascal mailing list