code: def esc_ansicolor (color):
      
      control = ''
      if ";" in color:
          control, color = color.split(";", 1)
          control = AnsiControl.get(control, '')+";"
      cnum = AnsiColor.get(color, '0')
      return AnsiEsc % (control+cnum)
docs: convert a named color definition to an escaped ANSI color