Class List Method List File List

# Class: VertxShell::Tty

Inherits:
  Object
  - Object
  - VertxShell::Tty
  show all
Defined in:
  /Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb

## Direct Known Subclasses

CommandProcess, Term

## Instance Method Summary (collapse)

- - (Object) height
- - (Tty) initialize(j_del) constructor
  A new instance of Tty.
- - (Object) j_del
- - (Object) resizehandler
- - (Object) stdin_handler
- - (Object) type
- - (Object) width
- - (Object) write(data = nil)

## Constructor Details

### - (`Tty`) initialize(j_del)

Returns a new instance of Tty

    8
    9
    10
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 8

    def initialize(j_del)
      @j_del = j_del
    end

## Instance Method Details

### - (`Object`) height

Raises:

- (`ArgumentError`)

    31
    32
    33
    34
    35
    36
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 31

    def height
      if !block_given?
        return @j_del.java_method(:height, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling height()"
    end

### - (`Object`) j_del

    13
    14
    15
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 13

    def j_del
      @j_del
    end

### - (`Object`) resizehandler

Raises:

- (`ArgumentError`)

    60
    61
    62
    63
    64
    65
    66
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 60

    def resizehandler
      if block_given?
        @j_del.java_method(:resizehandler, [Java::IoVertxCore::Handler.java_class]).call(Proc.new { yield })
        return self
      end
      raise ArgumentError, "Invalid arguments when calling resizehandler()"
    end

### - (`Object`) stdin_handler

Raises:

- (`ArgumentError`)

    40
    41
    42
    43
    44
    45
    46
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 40

    def stdin_handler
      if block_given?
        @j_del.java_method(:stdinHandler, [Java::IoVertxCore::Handler.java_class]).call((Proc.new { |event| yield(event) }))
        return self
      end
      raise ArgumentError, "Invalid arguments when calling stdin_handler()"
    end

### - (`Object`) type

Raises:

- (`ArgumentError`)

    17
    18
    19
    20
    21
    22
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 17

    def type
      if !block_given?
        return @j_del.java_method(:type, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling type()"
    end

### - (`Object`) width

Raises:

- (`ArgumentError`)

    24
    25
    26
    27
    28
    29
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 24

    def width
      if !block_given?
        return @j_del.java_method(:width, []).call()
      end
      raise ArgumentError, "Invalid arguments when calling width()"
    end

### - (`Object`) write(data = nil)

Raises:

- (`ArgumentError`)

    50
    51
    52
    53
    54
    55
    56
    # File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx-shell/tty.rb', line 50

    def write(data=nil)
      if data.class == String && !block_given?
        @j_del.java_method(:write, [Java::java.lang.String.java_class]).call(data)
        return self
      end
      raise ArgumentError, "Invalid arguments when calling write(data)"
    end