A style of flags were designed for naval battles all the way through the Civil War; those incorporated distinguishing marks for ships
https://maps.app.goo.gl/WjEAX5Hdyd7zEHtU6
A number of flags had been designed for naval battles in the course of the Civil War; those included distinguishing marks for ships engaged in struggle on rivers and seas alike.