jline/jline2 — Issue #8: readCharacter() not returning
Author: jtzero
Created: 2012-01-12 17:58:34+00:00
State: open

the following code never prints
the commented out items work with JLine-1.0.jar

(if readCharacter() is not a replacement for getVirtualKey() then this issue is void)

```java
import jline.console.ConsoleReader;
//import jline.ConsoleReader;

public class JLineTester {

public static int val = 0;

public static void main(String[] args) {
try {
final ConsoleReader cr = new ConsoleReader();
int key = 0;
while(key != 3) {
key = cr.readCharacter();
//key = cr.readVirtualKey();
System.out.println(key);
}
} catch (Exception e) { e.printStackTrace(); }
}
}
```

Note: I can put System.out.println(c) in the readCharacter() and it will print in that method