-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.ttyIssues and PRs related to the tty subsystem.Issues and PRs related to the tty subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.wslIssues and PRs related to the Windows Subsystem for Linux.Issues and PRs related to the Windows Subsystem for Linux.
Description
- 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.
refack and sindresorhus
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.ttyIssues and PRs related to the tty subsystem.Issues and PRs related to the tty subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.wslIssues and PRs related to the Windows Subsystem for Linux.Issues and PRs related to the Windows Subsystem for Linux.