---
title: "TerminalOutputStream"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/terminal/src/lib/terminal.ts#L18"
---

# TerminalOutputStream

## Summary

Output stream shape used for terminal writes and TTY detection.

## Signature

```ts
interface TerminalOutputStream {
  isTTY?: boolean
  write(chunk: string): unknown
}

```

## Properties

### `isTTY`

Whether the output stream is attached to a TTY.

## Methods

### `write(chunk: string): unknown`

Writes a chunk of text to the output stream.

#### Parameters

##### `chunk`

Text chunk to write.