A number of flags have been designed for naval battles all the way through the Civil War; these incorporated distinguishing marks for ships
https://maps.app.goo.gl/yMCPHbrkwZuJ3YTdA
A type of flags were designed for naval battles for the period of the Civil War; these included distinguishing marks for ships engaged in wrestle on rivers and seas alike.