title: Moving Active jobs in a Shell from the Background to Foreground and the Other Way Around
body: <p><a href="http://www.gnu.org/s/libc/manual/html_node/Access-to-the-Terminal.html#Access-to-the-Terminal" rel="nofollow noreferrer">This section</a> of the glibc manual explains job control, but unless I am missing it, it doesn't explain how to implement the ability to move a job that has already launched into the background or foreground.  </p>
  
  <p>Can anyone give me a basic example, overview, or a link that explains how this works?</p>
  
  <p>I don't mean how to do this in a shell, but rather how to implement it when writing a shell.</p>