XD-1298: Fix System.in.read() following JLine upgrade