code: def bgseq(code):
      
      if isinstance(code, str):
          code = nametonum(code)
  
      if code == -1:
          return ""
  
      s = termcap.get('setab', code) or termcap.get('setb', code)
      return s
docs: Returns the background color terminal escape sequence for the given color code number.