Jump to content

Getting size of parent window in bash/cmd


ibnpaul

Recommended Posts

Hello all,

 

I have a command-line PHP program that needs at least the width of the window that it is running in for display purposes.  The only way that I have done this successfully is by using ncurses functions.  I know that there is an environment variable called $COLUMNS that has this value in it, however it is not available via $_ENV not $_SERVER and would not be available through exec() et al because those create subshells in which they run the commands AFAIK.  Is there a way (besides exporting) to get this variable in the scope of my PHP program?  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/79984-getting-size-of-parent-window-in-bashcmd/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.