//fpc\3.0.4\source\packages\rtl-console\src\unix\crt.pp
Procedure GetConsoleBuf;
..
ScreenWidth:=0;
..
if (not OutputRedir) ... then
..
ScreenWidth:=Wininfo.ws_col;
...
// Set some arbitrary defaults which make some sense...
If (ScreenWidth=0) then
ScreenWidth:=80;
...