A type of flags have been designed for naval battles right through the Civil War; those incorporated distinguishing marks for ships
https://maps.app.goo.gl/wuoNsqxxSxGKh2wZ9
A style of flags had been 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.