Subject: Re: vi core dump
To: Aymeric Vincent <email@example.com>
From: Brett Lymn <firstname.lastname@example.org>
Date: 12/30/2001 20:38:12
According to Aymeric Vincent:
>It's okay, the bug has been analyzed and I sent a patch to Brett Lymn,
>who will apply it if he thinks it's OK.
Yes, that patch looks fine. I shall apply it and commit a new version
of libcurses tonight.
>In short, the problem comes from the fact that nvi calls endwin() and
>newterm() at every resize event, and the curses library is confused by
>this "weird" behaviour.
This is very weird behaviour - I assume they do this to work around
some curses libraries not having a resizeterm function. Is there any
config option to use resizeterm?
>This buggy behaviour did not and does not occur with initscr() because
>initscr() is by essence allowed to make certain assumptions
>(i.e. overwrite a lot of global variables) that newterm() might not be
pretty much right. The initscr call is only supposed to be called
once to initialise curses - this function used to set up a whole swag
of globals to hold the curses internal state. These days initscr is
just a wrapper call to newterm(). The function newterm() allows an
application to talk to multiple, possibly different, terminals at the
Brett Lymn, Computer Systems Administrator, BAE SYSTEMS