def write(self, msg, return_focus = True, after = "normal G"):
        if not self.is_open:
            self.create()
        if return_focus:
            prev_win = vim.eval('winnr()')
        if self.buffer_empty():
            self.buffer[:] = str(msg).split('\n')
        else:
            self.buffer.append(str(msg).split('\n'))
        self.command(after)
        if return_focus:
            vim.command('%swincmd W' % prev_win)
dataset/ETHPy150Open joonty/vdebug/plugin/python/vdebug/ui/vimui.py/Window.write/original