A form of flags had been designed for naval battles for the time of the Civil War; these incorporated distinguishing marks for ships
https://atavi.com/share/y3r032z17ujyq
A number of flags had been designed for naval battles right through the Civil War; those integrated distinguishing marks for ships engaged in fight on rivers and seas alike.