

def _dispatch_screen(self, cmd):
    screen = sget('screen', 'screen')
    plat = sublime.platform()
    cmd = (self.clean_cmd(plat) + '\n')
    n = 200
    chunks = [cmd[i:(i + n)] for i in range(0, len(cmd), n)]
    for chunk in chunks:
        if (plat == 'linux'):
            chunk = chunk.replace('\\', '\\\\')
            chunk = chunk.replace('$', '\\$')
        subprocess.call([screen, '-X', 'stuff', chunk])

dataset/ETHPy150Open randy3k/SendTextPlus/textsender.py TextSender._dispatch_screen/VarMisuse@36/46 `cmd`->`plat`