title: Threaded Perl with each thread in a new xterm
body: <p>I'm creating a threaded program where not all threads are spawned at the beginning. Some have to wait for 1 or more threads to complete first. This would not be a problem, except I would like to keep the <code>xterm</code>s open to read through the output. In some cases, piping to a file does not work as there is some fancy stuff going on with the terminal output where it overwrites itself.</p>
  
  <p>I have been using
  <code>my $xt_hold = "xterm -sl 5000 -geometry 350x50+0+100 -iconic -hold -e $cmd"; system($xt_hold);</code> to create the <code>xterm</code> but this does not allow me to join the thread when it is finished. Is there another way I can keep the xterm open and know when/join the thread when it is finished?</p>
  
  <p>If there is a better solution using GNU <code>screen</code> then I would probably be interested in that, but my primary choice would be <code>xterm</code> just because I am more familiar with it.</p>