From WikiPOBia
The
Blue Peter flag was flown by ships preparing to leave port. It was intended to alert crew and passengers ashore that they should return to the ship. The flag is hoisted at the fore-topmasthead or main-topmasthead in ships with only one mast. In the signals code used in the canon, the same flag indicated the number 2. In the modern International Code, it represents the letter P.