Skip to content

Resize event on stdout not invoked in TTY on macOS #26671

@samholmes

Description

@samholmes

Version: Deno 2.0.4
macOS: 14.2.1

Repro steps

  1. deno in Alacritty
  2. process.stdout.on('resize', () => { console.log(${process.stdout.columns}x${process.stdout.rows}) })
  3. Resize Alacritty window

Expected

Printed console output with the process columns and rows.

Actual

Nothing happens.

Additionally

If you run the same process.stdout.on('resize', () => { console.log(${process.stdout.columns}x${process.stdout.rows}) }) in node (I'm using v20), then you'll see the expected results.

Also, I've tested in Warp and Terminal TTY apps as well and got the same bug.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlynode compat

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions