A form of flags were designed for naval battles during the Civil War; these incorporated distinguishing marks for ships
https://thoughtminty.com/s/6SXWI_ndAHoqb0HLZ4elK
A variety of flags have been designed for naval battles in the course of the Civil War; those included distinguishing marks for ships engaged in fight on rivers and seas alike.