They could tell by the white flag on the periscope.
"They could tell by the white flag on the periscope.' Then when the French Uboat was seen, it retreated!