A form of flags had been designed for naval battles right through the Civil War; these protected distinguishing marks for ships
https://thoughtminty.com/s/xwVn3RQR4lxq20JBrPEKH
A number of flags had been designed for naval battles all over the Civil War; these integrated distinguishing marks for ships engaged in fight on rivers and seas alike.