Flag semaphore is the telegraphy system conveying information at a distance by means of visual signals with hand-held flags, rods, disks, paddles, or occasionally bare or gloved hands. Information is encoded by the position of the flags; it is read when the flag is in a fixed position. Semaphores were adopted and widely used (with hand-held flags replacing the mechanical arms of shutter semaphores) in the maritime world in the 19th century. It is still used during underway replenishment at sea and is acceptable for emergency communication in daylight or using lighted wands instead of flags, at night.

The current flag semaphore system uses two short poles with square flags, which a signal person holds in different positions to signal letters of the alphabet and numbers. The signalman holds one pole in each hand, and extends each arm in one of eight possible directions. Except for in the rest position, the flags do not overlap. The flags are colored differently based on whether the signals are sent by sea or by land. At sea, the flags are colored red and yellow (the Oscar flag), while on land, they are white and blue (the Papa flag). Flags are not required; their purpose is to make the characters more obvious.

More Info: en.wikipedia.org