if a user suspends a JLine session using C-z, an exception like this will be thrown:
if a user suspends a JLine session using C-z, an exception like this will be thrown:

java.io.IOException: Interrupted system call
    at java.io.FileInputStream.read(Native Method)
    at jline.Terminal.readCharacter(Terminal.java:99)
    at jline.UnixTerminal.readVirtualKey(UnixTerminal.java:128)
    at jline.ConsoleReader.readVirtualKey(ConsoleReader.java:1453)
    at jline.ConsoleReader.readBinding(ConsoleReader.java:654)
    at jline.ConsoleReader.readLine(ConsoleReader.java:494)
    at jline.ConsoleReader.readLine(ConsoleReader.java:448)
    at jline.ConsoleReader.readLine(ConsoleReader.java:300)

This patch avoids this by special-casing the "Interrupdet system call" exception message.

However, in at least one environment (Spring Roo), after a suspend-resume cycle, stdin is echoed back to stdout after a line is read. I tried to perform the logic at ConsoleReader.java:300; the same stdin-echo issue persisted in that configuration as well.

pcl/jline,pcl/jline