# Class: Pty

## vertx-shell-js/pty~ Pty

#### new Pty()

Source:
  - vertx-shell-js/pty.js, line 29

### Methods

#### setSize(width, height) → {Pty}

Resize the terminal.

##### Parameters:

Name | Type | Description
--- | --- | ---
`width` | number |
`height` | number |

Source:
  - vertx-shell-js/pty.js, line 74

##### Returns:

this current object

Type
  Pty

#### slave() → {Tty}

Source:
  - vertx-shell-js/pty.js, line 88

##### Returns:

the pseudo terminal slave

Type
  Tty

#### stdoutHandler(handler) → {Pty}

Set the standard out handler of the pseudo terminal.

##### Parameters:

Name | Type | Description
--- | --- | ---
`handler` | function | the standard output

Source:
  - vertx-shell-js/pty.js, line 41

##### Returns:

this current object

Type
  Pty

#### write(data) → {Pty}

Write data to the slave standard input of the pseudo terminal.

##### Parameters:

Name | Type | Description
--- | --- | ---
`data` | string | the data to write

Source:
  - vertx-shell-js/pty.js, line 58

##### Returns:

this current object

Type
  Pty