The first record in regulations to prescribe a flag for the President was the 1858 Signals for the Use of the United States Navy, which specified that the union jack (the canton of the national flag by itself, i.e. blue with white stars for all the states) should be flown at the mainmast to signify the presence of the commander-in-chief.
During the American Civil War, on August 18, 1864, the Confederate ship CSS Tallahassee under the command of John Taylor Wood sailed into Halifax harbour for supplies, coal and to make repairs to her mainmast.
He reached Bantry Bay, where the Redoutable accidentally collided with the RĂ©solue, destroying her bowsprit, foremast, mainmast and mizzen.