Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samholmes opened this issue Nov 1, 2024 · 0 comments · May be fixed by #27363
Open

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

samholmes opened this issue Nov 1, 2024 · 0 comments · May be fixed by #27363
Assignees
Labels
bug Something isn't working correctly node compat

Comments

@samholmes
Copy link

samholmes commented Nov 1, 2024

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.

@samholmes samholmes changed the title Resize event on stdout not invoked in Alacritty on macOS Resize event on stdout not invoked in TTY on macOS Nov 1, 2024
@bartlomieju bartlomieju added bug Something isn't working correctly node compat labels Nov 2, 2024
@littledivy littledivy linked a pull request Dec 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants