Date: Fri, 23 Jul 2010 21:08:14 +0200 From: Polytropon <freebsd@edvax.de> To: "A. Wright" <andrew@qemg.org> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Text mode screen size max. compatibility Message-ID: <20100723210814.44ff8bd1.freebsd@edvax.de> In-Reply-To: <alpine.BSF.2.00.1007231535211.1633@qemg.org> References: <20100723202450.ea80c86f.freebsd@edvax.de> <alpine.BSF.2.00.1007231535211.1633@qemg.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Jul 2010 15:44:27 -0300 (ADT), "A. Wright" <andrew@qemg.org> wrote: > > On Fri, 23 Jul 2010, Polytropon wrote: > > > Is there a way to easily determine the terminal output size at > > program startup so the program can be preconfigured for certain > > screen sizes, and even refuse to run if it's less than 80x25? > > The "curses" library will do this. The variables LINES and COLS > will tell you what you want. Cool - I planned to use (n)curses anyway. But one question remains: Is there an "interrupt line" (or something functionally similar, a flag or whatever) that will give the chance for a notification if LINES or COLS has recently changed, e. g. through a window size modification? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100723210814.44ff8bd1.freebsd>