def monitor(self):
        if self.output:
            return

        window = sublime.active_window()
        self.output = output = window.new_file()
        ActualVim.views[output.id()] = self

        output.settings().set('actual_proxy', True)
        output.set_read_only(True)
        output.set_scratch(True)
        output.set_name('(tty)')
        output.settings().set('actual_intercept', True)
        output.settings().set('actual_mode', True)

        with Edit(output) as edit:
            edit.insert(0, self.vim.tty.dump())
        self.vim.monitor = output

        # move the monitor view to a different group
        if 1 > window.num_groups():
            target = int(not window.active_group())
            window.set_view_index(output, target, 0)
dataset/ETHPy150Open lunixbochs/actualvim/actual.py/ActualVim.monitor/swapped operands of `>`