You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to create a line that crosses the entire width of the terminal or fill half of the lines of the terminal with logs, I have no way (from what I can find) of finding the overall width/height of the console. Is there a way, if not, can it the width/height be passed down as props to the top level component?
The text was updated successfully, but these errors were encountered:
Doesn't process.stdout.columns and process.stdout.rows work for you? process.stdout is a TTY stream so you should be able to get width (columns) and height (rows) of the terminal (https://nodejs.org/api/tty.html)
If I want to create a line that crosses the entire width of the terminal or fill half of the lines of the terminal with logs, I have no way (from what I can find) of finding the overall width/height of the console. Is there a way, if not, can it the width/height be passed down as props to the top level component?
The text was updated successfully, but these errors were encountered: