A form of flags were designed for naval battles all the way through the Civil War; these included distinguishing marks for ships
https://www.instapaper.com/read/2047062487
A number of flags have been designed for naval battles for the time of the Civil War; these covered distinguishing marks for ships engaged in wrestle on rivers and seas alike.