Added interruptable blocking reads from System.in for unsupported

terminals (ie: IDE's)
This commit is contained in:
nathan 2017-11-28 20:34:13 +01:00
parent e9417429cb
commit 49b425b42b
2 changed files with 3 additions and 2 deletions

View File

@ -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 `ECHO` on/off in the console
1. Controls `Ctrl-C` (SIGINT) 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. 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+ - 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
<dependency> <dependency>
<groupId>com.dorkbox</groupId> <groupId>com.dorkbox</groupId>
<artifactId>Console</artifactId> <artifactId>Console</artifactId>
<version>3.4</version> <version>3.5</version>
</dependency> </dependency>
</dependencies> </dependencies>
``` ```

View File

@ -84,7 +84,7 @@ class Console {
*/ */
public static public static
String getVersion() { String getVersion() {
return "3.4"; return "3.5";
} }
/** /**