Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: terminal

From: Christian Weisgerber <naddy(at)mips.inka.de>
Date: Sat Nov 30 2002 - 15:39:37 EST

Ben Bunker <jaraph@yahoo.com> wrote:

> I'm at a loss as to how to find the size of the
> terminal (i.e., width, number of lines). Does anyone
> have any insight into this? Thanks.

Off the top of my head, in descending priority:

- LINES, COLUMNS environment variables
- the tty's struct winsize
- TERM's termcap/terminfo entry

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de
Received on Sat Nov 30 16:32:07 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:31:48 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library