From: Martin DeMello Date: 2008-09-26T08:48:35+09:00 Subject: Re: How to get terminal dimensions without using curses or ncurses? On Thu, Sep 25, 2008 at 3:33 PM, Kenneth McDonald wrote: > I'd like to be able to print to terminal and do some reasonable formatting, > without going to the trouble of learning curses. I simply need to know the > dimensions of the terminal, but that info doesn't appear to be available in > the ENV variables (which is what I'd expected.) Is there a way to get this > info? It's platform dependent, and curses has already done the hard work of writing a uniform function call across various platforms. I'd personally recommend going ahead and using just enough of curses to get that function - you don't need to bother with the rest of it. martin