Date: Fri, 23 Jul 2010 12:28:11 -0700 From: Chuck Swiger <cswiger@mac.com> To: Polytropon <freebsd@edvax.de> Cc: "A. Wright" <andrew@qemg.org>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Text mode screen size max. compatibility Message-ID: <B4BC4493-1252-40D0-8D13-A2CAB75716A4@mac.com> In-Reply-To: <20100723210814.44ff8bd1.freebsd@edvax.de> References: <20100723202450.ea80c86f.freebsd@edvax.de> <alpine.BSF.2.00.1007231535211.1633@qemg.org> <20100723210814.44ff8bd1.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Yes-- On Jul 23, 2010, at 12:08 PM, Polytropon wrote: > 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? Yes, ncurses supports this: The ncurses library includes facilities for responding to window resiz- ing events, e.g., when running in an xterm. See the resizeterm(3X) and wresize(3X) manual pages for details. In addition, the library may be configured with a SIGWINCH handler. Regards, -- -Chuck
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B4BC4493-1252-40D0-8D13-A2CAB75716A4>