as soon as they were well clear of fort moultrie , both ships turned north and hoisted the new battle flag of the republic of south carolina a white background , with a green rectangle in the upper left , emblazoned with the palm tree and crescent moon of south carolina .