Text mode screen size max. compatibility

Chuck Swiger cswiger at mac.com
Fri Jul 23 19:28:30 UTC 2010


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



More information about the freebsd-questions mailing list