Methods
-
eventHandler(eventType, handler) → {Tty}
-
Set an event handler to be notified by Shell events.
Parameters:
Name Type Description eventTypeObject the event type handlerfunction Returns:
- Type
- Tty
-
height() → {number}
-
Returns:
-
the current height, i.e the number of columns or if unknown
-
- Type
- number
-
-
setStdin(stdin) → {Tty}
-
Set an handler the standard input to read the data in String format.
Parameters:
Name Type Description stdinfunction the standard input Returns:
this object- Type
- Tty
-
stdout() → {Stream}
-
Returns:
-
the standard output for emitting data
-
- Type
- Stream
-
-
width() → {number}
-
Returns:
-
the current width, i.e the number of rows or if unknown
-
- Type
- number
-