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?
getting terminal size without using ncurses
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users