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