def ui_attach(self, width, height, rgb=None, **kwargs):
options = kwargs<EOL>if rgb is not None:<EOL><INDENT>options['<STR_LIT>'] = rgb<EOL><DEDENT>return self.request('<STR_LIT>', width, height, options)<EOL>
Register as a remote UI.

        After this method is called, the client will receive redraw
        notifications.