A form of flags were designed for naval battles all through the Civil War; those integrated distinguishing marks for ships
https://veloriftlabs.com/s/K8psQGA2UE78aBxXYKtOs
A style of flags have been designed for naval battles at some stage in the Civil War; these included distinguishing marks for ships engaged in fight on rivers and seas alike.