After British sent packing, gracious in imprisoning singular officer (6)
I believe the answer is:
ensign
'officer' is the definition.
(I've seen this before)
I cannot understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for ensign that I've seen before include "Military or naval flag" , "Soldier who carries the Colours" , "National flag" , "US naval rank" , "Ship's flag and junior officer" .)