title: Piping binary output between programs without corrupting Terminal
body: <p>I am trying a program (prog1) which generates binary output (it is a encoder) that I want to pass to another program (prog2) . prog2 can take data from stdin, so I would like to pipe the output of prog1 to prog2. The problem is, since it is binary data, the terminal can get corrupted.
  for example
  $> prog1 | prog2 -</p>
  
  <p>Is there any other way ? I would like to avoid writing glue code just to route the data between the two if I can.</p>
  
  <p>Thanks!</p>