Gets escape-codes for flag combinations.

	Arguments:
		combination (int): Either a single integer-convertible flag
						   or an OR'd flag-combination.
	Returns:
		A semi-colon-delimited string of appropriate escape sequences.

	Raises:
		errors.FlagError if the combination is out-of-range.

def codify(combination):

	"""
	Gets escape-codes for flag combinations.

	Arguments:
		combination (int): Either a single integer-convertible flag
						   or an OR'd flag-combination.
	Returns:
		A semi-colon-delimited string of appropriate escape sequences.

	Raises:
		errors.FlagError if the combination is out-of-range.
	"""

	if (isinstance(combination, int) and
		(combination < 0 or combination >= LIMIT)):
		raise errors.FlagError("Out-of-range flag-combination!")

	codes = []

	for enum in (Style, Color, Fill):
		for flag in enum:
			if combination & flag:
				codes.append(str(flag))

	return ";".join(codes)