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
Set the current terminal window size. #52830
Comments
AFAIK there isn't a way to do this natively, as different terminals support different operations |
node-pty can do that. but it would be great to have it in node. at least for the main terminals, windows, linux, macos, msys2, cygwin, etc. |
|
@nodejs/process WDYT? |
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: