There is a bug report, where the user says he gets this error.
http://bugs.freepascal.org/view.php?id=27003#c79020
He may not have the latest Lazarus, and he still has to report his fpc version, but terminal detection does not seem to have changed that much within 2.6.x.
I did ask him for some more feedback.
But in the end, this error is in fpc, so I would appreciate, if someone from the fpc team could have a look.
Note the bug is still needed in Lazarus, as the handling of this error in the IDE will need to be improved.
