Jump to content


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


getting terminal size without using ncurses

Recommended Posts

I had a hard time trying to find a way to get the terminal size (rows and cols) in a command line php script I'm writing. I was about to  give up and call a perl script to get the info, but I was wondering if there was a more efficient way. I need to be able to do this without recompiling php with ncurses support. Any ideas?


Share this post

Link to post
Share on other sites


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.