A form of flags had been designed for naval battles right through the Civil War; these covered distinguishing marks for ships
https://www.hometalk.com/member/262415833/john1362422
A number of flags had been designed for naval battles throughout the Civil War; these blanketed distinguishing marks for ships engaged in battle on rivers and seas alike.