Doan Ngoc San wrote:
Please, help me, how to detect when terminal window resizes ? My OS is REDHAT.
Your program will get a SINGWINCH signal which you can trap using:
InstallSignalHandler (SigWinCh, ...)
(unit GPC required). If you're using CRT, you don't have to do this yourself, and ReadKey/ReadKeyWord will return ksScreenSizeChanged/kbScreenSizeChanged when it happens. (But don't use CRT just for this if you wouldn't need it otherwise.)
Frank