[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XBoard-devel] release 4.4.1
From: |
Tim Mann |
Subject: |
Re: [XBoard-devel] release 4.4.1 |
Date: |
Sun, 11 Oct 2009 08:08:16 -0700 |
On Sun, 11 Oct 2009 10:01:52 +0200, "h.g. muller" <address@hidden> wrote:
> Related, but for another purpose: Is there a way to obtain the console width?
Yes, you should be able to do the same thing that "stty -a" does.
See "man tty_ioctl" and look for the "Get and Set Window Size" section.
Note that this is nonportable, so the code should really be inside an
"#if HAVE_TIOCGWINSZ" and the configure script should check for it.
That man page also mentions how to tell when the size changes: catch
the SIGWINCH signal.
--
Tim Mann address@hidden http://tim-mann.org/