title: Writing to Java program from Mac Terminal
body: <p>I have a small problem with the Mac terminal. I run a Java program from the terminal and try to read some stuff from the stdin using:</p>
  
  <pre><code>BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
  System.out.println("Produsul:" + System.getProperty("line.separator"));
  productOrder.setProductName(in.readLine());
  </code></pre>
  
  <p>The program gets stuck. I think that somehow, it doesn't detect EOL. I tried setting <code>Send string to shell (\033OF)</code> for the end key, but this didn't solve the problem. What am I missing?</p>