Write deleteCharacters as an ANSIAction.