Jump to content


Photo

getting terminal size without using ncurses


  • Please log in to reply
No replies to this topic

#1 drkstr

drkstr
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts
  • LocationSeattle, WA - USA

Posted 15 September 2006 - 06:27 PM

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?

thanks!
...drkstr




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users