title: difference between pty and a pipe
body: <p>I have been reading about ptys from this page's example: <a href="http://www.rkoucha.fr/tech_corner/pty_pdip.html" rel="nofollow noreferrer">http://www.rkoucha.fr/tech_corner/pty_pdip.html</a>. I have two questions:</p>
  <ul>
  <li><p>What is the difference, or the most important difference, between using a pty and using  a pipe? From what I have read, both are for inter-process communication, but with a pty the process can &quot;treat it like a normal terminal&quot;. What does that mean?</p>
  </li>
  <li><p>What is a &quot;controlling terminal&quot;? I have read about them but can't understand what they really are. Is the controlling terminal always the pty assigned to the process?</p>
  </li>
  </ul>