io.vertx.ext.shell.io

## Interface Tty

- All Known Subinterfaces:
    CommandProcess

      public interface Tty

  Provide interactions with the Shell TTY.
  Author:
    Julien Viet

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Tty` | `eventHandler(EventType eventType, Handler<Void> handler)` Set an event handler to be notified by Shell events.
    `int` | `height()`
    `Tty` | `setStdin(Handler<String> stdin)` Set an handler the standard input to read the data in String format.
    `Tty` | `setStdin(Stream stdin)` Set a stream on the standard input to read the data.
    `Stream` | `stdout()`
    `int` | `width()`

- - ### Method Detail

    - #### width

          int width()

      Returns:
        the current width, i.e the number of rows or -1 if unknown

    - #### height

          int height()

      Returns:
        the current height, i.e the number of columns or -1 if unknown

    - #### setStdin

          Tty setStdin(Stream stdin)

      Set a stream on the standard input to read the data.
      Parameters:
        `stdin` - the standard input
      Returns:
        this object

    - #### setStdin

          Tty setStdin(Handler<String> stdin)

      Set an handler the standard input to read the data in String format.
      Parameters:
        `stdin` - the standard input
      Returns:
        this object

    - #### stdout

          Stream stdout()

      Returns:
        the standard output for emitting data

    - #### eventHandler

          Tty eventHandler(EventType eventType,
                           Handler<Void> handler)

      Set an event handler to be notified by Shell events.
      Parameters:
        `eventType` - the event type
        `handler` -
      Returns:

Copyright © 2015. All rights reserved.