[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-misc
Subject: Re: terminal
From: naddy () mips ! inka ! de (Christian Weisgerber)
Date: 2002-11-30 20:39:37
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic