This library is a optimized combination of [JLine](https://github.com/jline/jline2) and [JAnsi](https://github.com/fusesource/jansi). While it is very similar in functionality to what these libraries provide, there are several things that are significantly different.
1. JNA *direct-mapping* instead of custom JNI/shell execution which is [slightly slower than JNI](https://github.com/java-native-access/jna/blob/master/www/DirectMapping.md) but significantly easier to read, modify, debug, and provide support for non-intel architectures.
1. Complete implementation of common [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code)
1. Automatically hooks into `System.err/out` for seamless integration in Java environments
- Provides simulated single character input via `in.read()`, which still requires the enter key to flush the buffer, but feeds single characters at a time
1. Backspace functionality for line input is preserved (if ANSI is enabled, the console is updated as well).
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,
Console.ENABLE_ANSI (type boolean, default value 'true')
- If true, allows an ANSI output stream to be created on System.out/err, otherwise it will provide an ANSI aware PrintStream which strips out the ANSI escape sequences.
Console.FORCE_ENABLE_ANSI (type boolean, default value 'false')
- If true, then we always force the raw ANSI output stream to be enabled (even if the output stream is not aware of ANSI commands).
This can be used to obtain the raw ANSI escape codes for other color aware programs (ie: less -r)
Console.ENABLE_ECHO (type boolean, default value 'true')
- Enables or disables character echo to stdout in the console, should call Console.setEchoEnabled(boolean) after initialization.
Console.ENABLE_INTERRUPT (type boolean, default value 'false')
- Enables or disables CTRL-C behavior in the console, should call Console.setInterruptEnabled(boolean) after initialization.
Console.ENABLE_BACKSPACE (type boolean, default value 'true')
- Enables the backspace key to delete characters in the line buffer and (if ANSI is enabled) from the screen.
Console.INPUT_CONSOLE_TYPE (type String, default value 'AUTO')
- Used to determine what console to use/hook when AUTO is not correctly working.
Valid options are:
- AUTO - automatically determine which OS/console type to use
- UNIX - try to control a UNIX console
- WINDOWS - try to control a WINDOWS console
- NONE - do not try to control anything, only line input is supported