title: Using JNA to grab characters from console without enter
body: <p>I am trying to use Java with JNA to grab character input from the console without the user having to hit enter.</p>
  
  <p>I have been using <a href="http://www.source-code.biz/snippets/java/RawConsoleInput/RawConsoleInput.java" rel="nofollow">this resource</a> to achieve this, however it does not have OS X support. It works as expected on Windows and *nix (Ubuntu tested), however on OS X keystrokes appear in terminal and require you to press enter.</p>
  
  <p>I am using a ConcurrentLinkedQueue to handle the keystrokes, with an external thread listening for them and adding them to the queue which is polled every tick on the main thread.</p>
  
  <p>If anyone could help add OS X support to the resource aforementioned, or suggest a better way to solve the same problem, that would be greatly appreciated.</p>
  
  <p>Thanks!</p>