A kind of flags have been designed for naval battles during the Civil War; these included distinguishing marks for ships
https://travismqdt216.zenbloomer.com/posts/quality-matters-why-you-should-invest-in-authentic-civil-war-flags-3
A number of flags have been designed for naval battles right through the Civil War; those covered distinguishing marks for ships engaged in combat on rivers and seas alike.