Skip to content

tty: tty.WriteStream event 'resize' on Windows #13197

Closed
@vsemozhetbyt

Description

@vsemozhetbyt
  • Version: 8.0.0 rc1
  • Platform: Windows 7 x64
  • Subsystem: tty

Is this event supported on Windows?

The script with this code from the doc exits immediately without launching the event loop. I've tried to modify it like this:

process.stdout.on('resize', () => {
  console.log('screen size has changed!');
  console.log(`${process.stdout.columns}x${process.stdout.rows}`);
});

setInterval(()=>{}, 1000);

and then to resize the console window manually or via the console window properties, but the event handler never fired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.ttyIssues and PRs related to the tty subsystem.windowsIssues and PRs related to the Windows platform.wslIssues and PRs related to the Windows Subsystem for Linux.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions