Skip to content

Commit 05f2d4e

Browse files
committed
Better explain pixelSize in interfaces.ts and node-pty.d.ts
1 parent 7adb723 commit 05f2d4e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/interfaces.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export interface ITerminal {
2828
* Resize the pty.
2929
* @param cols The number of columns.
3030
* @param rows The number of rows.
31-
* @param pixelSize Optional pixel dimensions of the pty.
31+
* @param pixelSize Optional pixel dimensions of the pty. On Unix, this sets the `ws_xpixel`
32+
* and `ws_ypixel` fields of the `winsize` struct. Applications running in the pty can read
33+
* these values via the `TIOCGWINSZ` ioctl. This parameter is ignored on Windows.
3234
*/
3335
resize(cols: number, rows: number, pixelSize?: { width: number, height: number }): void;
3436

typings/node-pty.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ declare module 'node-pty' {
159159
* Resizes the dimensions of the pty.
160160
* @param columns The number of columns to use.
161161
* @param rows The number of rows to use.
162-
* @param pixelSize Optional pixel dimensions of the pty.
162+
* @param pixelSize Optional pixel dimensions of the pty. On Unix, this sets the `ws_xpixel`
163+
* and `ws_ypixel` fields of the `winsize` struct. Applications running in the pty can read
164+
* these values via the `TIOCGWINSZ` ioctl. This parameter is ignored on Windows.
163165
*/
164166
resize(columns: number, rows: number, pixelSize?: { width: number, height: number }): void;
165167

0 commit comments

Comments
 (0)