Skip to main content
WriteStream.prototype.getWindowSize - node__tty.d.ts - Node documentation
method WriteStream.prototype.getWindowSize

Usage in Deno

```typescript import { WriteStream } from "node:node__tty.d.ts"; ```
WriteStream.prototype.getWindowSize(): [number, number]
`writeStream.getWindowSize()` returns the size of the TTY corresponding to this `WriteStream`. The array is of the type `[numColumns, numRows]` where `numColumns` and `numRows` represent the number of columns and rows in the corresponding TTY.

Return Type

[number, number]