code: def csi(self, capname, *args):
          
          value = curses.tigetstr(capname)
          if value is None:
              return b''
          else:
              return curses.tparm(value, *args)
docs: Return the escape sequence for the selected Control Sequence.