Example #1
0
 @Override
 public void close() throws IOException {
   try {
     inputSession.stop();
   } catch (InterruptedException e) {
     e.printStackTrace();
   }
 }
Example #2
0
  @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);
  }