You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: address CodeRabbit review comments for PTY support
- Fix docs example consistency: use array form consistently
- Add spawnSync warning to TypeScript PTY type definitions
- Fix Windows compile error in js_bun_spawn_bindings.zig
- Fix extra_fds PTY to use dup() for consistency
- Add isNumber() type check for PTY width/height options
- Fix error message consistency in stdio.zig
- Fix switch case overlap in shell/subproc.zig (remove .pipe/.readable_stream that were already handled)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: packages/bun-types/bun.d.ts
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -5407,7 +5407,7 @@ declare module "bun" {
5407
5407
* - `"ignore"`, `null`, `undefined`: The process will have no standard input (default)
5408
5408
* - `"pipe"`: The process will have a new {@link FileSink} for standard input
5409
5409
* - `"inherit"`: The process will inherit the standard input of the current process
5410
-
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdin.isTTY === true`. Falls back to `"pipe"` on Windows.
5410
+
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdin.isTTY === true`. Falls back to `"pipe"` on Windows. Not supported with `spawnSync`.
5411
5411
* - `ArrayBufferView`, `Blob`, `Bun.file()`, `Response`, `Request`: The process will read from buffer/stream.
5412
5412
* - `number`: The process will read from the file descriptor
5413
5413
*
@@ -5416,7 +5416,7 @@ declare module "bun" {
5416
5416
* - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
5417
5417
* - `"ignore"`, `null`: The process will have no standard output/error
5418
5418
* - `"inherit"`: The process will inherit the standard output/error of the current process
5419
-
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdout.isTTY === true` / `process.stderr.isTTY === true`. Falls back to `"pipe"` on Windows.
5419
+
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdout.isTTY === true` / `process.stderr.isTTY === true`. Falls back to `"pipe"` on Windows. Not supported with `spawnSync`.
5420
5420
* - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
5421
5421
* - `number`: The process will write to the file descriptor
5422
5422
*
@@ -5431,7 +5431,7 @@ declare module "bun" {
5431
5431
* - `"ignore"`, `null`, `undefined`: The process will have no standard input
5432
5432
* - `"pipe"`: The process will have a new {@link FileSink} for standard input
5433
5433
* - `"inherit"`: The process will inherit the standard input of the current process
5434
-
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdin.isTTY === true`. Falls back to `"pipe"` on Windows.
5434
+
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdin.isTTY === true`. Falls back to `"pipe"` on Windows. Not supported with `spawnSync`.
5435
5435
* - `ArrayBufferView`, `Blob`: The process will read from the buffer
5436
5436
* - `number`: The process will read from the file descriptor
5437
5437
*
@@ -5444,7 +5444,7 @@ declare module "bun" {
5444
5444
* - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
5445
5445
* - `"ignore"`, `null`: The process will have no standard output/error
5446
5446
* - `"inherit"`: The process will inherit the standard output/error of the current process
5447
-
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdout.isTTY === true`. Falls back to `"pipe"` on Windows.
5447
+
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stdout.isTTY === true`. Falls back to `"pipe"` on Windows. Not supported with `spawnSync`.
5448
5448
* - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
5449
5449
* - `number`: The process will write to the file descriptor
5450
5450
*
@@ -5457,7 +5457,7 @@ declare module "bun" {
5457
5457
* - `"pipe"`, `undefined`: The process will have a {@link ReadableStream} for standard output/error
5458
5458
* - `"ignore"`, `null`: The process will have no standard output/error
5459
5459
* - `"inherit"`: The process will inherit the standard output/error of the current process
5460
-
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stderr.isTTY === true`. Falls back to `"pipe"` on Windows.
5460
+
* - `"pty"`: The process will use a pseudo-terminal (PTY). The child will see `process.stderr.isTTY === true`. Falls back to `"pipe"` on Windows. Not supported with `spawnSync`.
5461
5461
* - `ArrayBufferView`: The process write to the preallocated buffer. Not implemented.
5462
5462
* - `number`: The process will write to the file descriptor
0 commit comments