From 49b425b42b15995f55a903d8e5d8a1ad4554dcef Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 28 Nov 2017 20:34:13 +0100 Subject: [PATCH] Added interruptable blocking reads from System.in for unsupported terminals (ie: IDE's) --- README.md | 3 ++- src/dorkbox/console/Console.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ec66323..4a4a8e1 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ This library is a optimized combination of [JLine](https://github.com/jline/jlin 1. Controls `ECHO` on/off in the console 1. Controls `Ctrl-C` (SIGINT) on/off in the console 1. Multi-threaded, intelligent buffering of command input for simultaneous input readers on different threads + 1. Solves un-interruptable blocking reads from System.in when in an "unsupported" terminal (ie: anything other than a *nix/windows shell) so one can successfully stop reading from the input stream, - This is for cross-platform use, specifically - linux arm/32/64, mac 32/64, and windows 32/64. Java 6+ @@ -88,7 +89,7 @@ Maven Info com.dorkbox Console - 3.4 + 3.5 ``` diff --git a/src/dorkbox/console/Console.java b/src/dorkbox/console/Console.java index e3e1b8e..b74ec8b 100644 --- a/src/dorkbox/console/Console.java +++ b/src/dorkbox/console/Console.java @@ -84,7 +84,7 @@ class Console { */ public static String getVersion() { - return "3.4"; + return "3.5"; } /**