A form of flags have been designed for naval battles all the way through the Civil War; these protected distinguishing marks for ships
https://www.hometalk.com/member/259789669/caleb1325594
A style of flags were designed for naval battles for the duration of the Civil War; these incorporated distinguishing marks for ships engaged in fight on rivers and seas alike.