From 31b7033c9169743e9b9f5b976066faac26f8a9d5 Mon Sep 17 00:00:00 2001 From: Kevin Lamonte Date: Wed, 1 Feb 2017 20:21:42 -0500 Subject: [PATCH] Update doc --- README.md | 7 ++++--- src/jexer/io/ECMA48Terminal.java | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) 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; -- 2.27.0