@Override public void close() throws IOException { try { inputSession.stop(); } catch (InterruptedException e) { e.printStackTrace(); } }
@Override public void init(Settings settings) { inputSession = new ConsoleInputSession(settings.getInputStream()); input = inputSession.getExternalInputStream(); writer = new PrintStream(settings.getStdOut(), true); this.stdOut = settings.getStdOut(); this.stdErr = settings.getStdErr(); size = new TerminalSize(24, 80); }