Before the radio was invented people used diverse ways of communication and signals. Here is a flag signal semaphore chart widely adopted and used in the maritime world in 19th and at the beginning of 20th Century.
Illustration: The story of Radio - A Ladybird 'achievements' book, 1968, Ladybird & Penguin (c)