def _dispatch_tmux(self, cmd):
        tmux = sget("tmux", "tmux")
        cmd = self.clean_cmd(cmd) + "\n"
        n = 200
        chunks = [cmd[i:i+n] for i in range(0, len(cmd), n)]
        for chunk in chunks:
            subprocess.call([tmux, 'set-buffer', chunk])
            subprocess.call([tmux, 'paste-buffer', '-d'])
dataset/ETHPy150Open randy3k/SendTextPlus/textsender.py/TextSender._dispatch_tmux/original