Set the current terminal window size. #52830
Labels
feature request
Issues that request new features to be added to Node.js.
process
Issues and PRs related to the process subsystem.
What is the problem this feature will solve?
As we know, to get the actual window size, we can do:
As far as I know there is not the opposite: a way to set the window size programmatically.
Setting
process.stdout.rows
andprocess.stdout.columns
sort of works but does not really change the window size.What is the feature you are proposing to solve the problem?
process.stdout.setRows(40);
and
process.stdout.setColumns(80);
to physically resize the window (tty/pty).
What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: