From: Kevin Lamonte Date: Thu, 2 Feb 2017 01:21:42 +0000 (-0500) Subject: Update doc X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=31b7033c9169743e9b9f5b976066faac26f8a9d5;p=fanfix-jexer.git Update doc --- diff --git a/README.md b/README.md index f902ad8..a947012 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,10 @@ Jexer currently supports three backends: backend on non-Windows platforms. * The same command-line ECMA-48 / ANSI X3.64 type terminal as above, - but to any general InputStream/OutputStream. See the file - jexer.demos.Demo2 for an example of running the demo over a TCP - socket. + but to any general InputStream/OutputStream or Reader/Writer. See + the file jexer.demos.Demo2 for an example of running the demo over a + TCP socket. jexer.demos.Demo3 demonstrates how one might use a + character encoding than the default UTF-8. * Java Swing UI. This backend can be selected by setting jexer.Swing=true. The default window size for Swing is 132x40, diff --git a/src/jexer/io/ECMA48Terminal.java b/src/jexer/io/ECMA48Terminal.java index a400ba2..f448ac4 100644 --- a/src/jexer/io/ECMA48Terminal.java +++ b/src/jexer/io/ECMA48Terminal.java @@ -389,7 +389,12 @@ public final class ECMA48Terminal implements Runnable { sessionInfo = (SessionInfo) input; } if (sessionInfo == null) { - sessionInfo = new TSessionInfo(); + if (setRawMode == true) { + // Reading right off the tty + sessionInfo = new TTYSessionInfo(); + } else { + sessionInfo = new TSessionInfo(); + } } this.output = writer;