I have this async script below, what I'd like to do is have it split it's output but in two different sections of the terminal (top and bottom). I've heard curses is a great way to go about it, but can't find an example that seems to come close to it. Would anyone happen to have an idea how to go about this? Any help is appreciated!
if __name__ == '__main__':
pool = Pool(processes=2)
for b in a:
pool.apply_async(os.system,(b,))
pool.close()
pool.join()