Skip to content

Commit 7adb723

Browse files
committed
Align naming in native.d.ts to pixel_width, height
1 parent 0a506d9 commit 7adb723

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/native.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface IUnixNative {
1414
fork(file: string, args: string[], parsedEnv: string[], cwd: string, cols: number, rows: number, uid: number, gid: number, useUtf8: boolean, helperPath: string, onExitCallback: (code: number, signal: number) => void): IUnixProcess;
1515
open(cols: number, rows: number): IUnixOpenProcess;
1616
process(fd: number, pty?: string): string;
17-
resize(fd: number, cols: number, rows: number, xPixel: number, yPixel: number): void;
17+
resize(fd: number, cols: number, rows: number, pixelWidth: number, pixelHeight: number): void;
1818
}
1919

2020
interface IConptyProcess {

src/unixTerminal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ export class UnixTerminal extends Terminal {
272272
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
273273
throw new Error('resizing must be done using positive cols and rows');
274274
}
275-
const xPixel = pixelSize?.width ?? 0;
276-
const yPixel = pixelSize?.height ?? 0;
277-
pty.resize(this._fd, cols, rows, xPixel, yPixel);
275+
const pixelWidth = pixelSize?.width ?? 0;
276+
const pixelHeight = pixelSize?.height ?? 0;
277+
pty.resize(this._fd, cols, rows, pixelWidth, pixelHeight);
278278
this._cols = cols;
279279
this._rows = rows;
280280
}

0 commit comments

Comments
 (0)