code: def ui_attach(self, width, height, rgb=None, **kwargs):
          
          options = kwargs
          if rgb is not None:
              options['rgb'] = rgb
          return self.request('nvim_ui_attach', width, height, options)
docs: Register as a remote UI.
  
          After this method is called, the client will receive redraw
          notifications.