A form of flags had been designed for naval battles right through the Civil War; these blanketed distinguishing marks for ships
https://maps.app.goo.gl/rPPnCfstZTBwKjMs7
A kind of flags were designed for naval battles at some stage in the Civil War; those included distinguishing marks for ships engaged in fight on rivers and seas alike.