A style of flags were designed for naval battles right through the Civil War; these covered distinguishing marks for ships
https://deanrshx384.summitviewdaily.com/posts/a-collector-s-dream-finding-historic-civil-war-flags-for-sale-3
A type of flags have been designed for naval battles at some stage in the Civil War; these incorporated distinguishing marks for ships engaged in struggle on rivers and seas alike.