On Sun, Mar 23, 2008 at 11:20:13PM +0100, Samuel Thibault wrote: > Samuel Thibault, le Sun 23 Mar 2008 21:34:31 +0000, a écrit : > > libgpm calling del_curterm seems a bit odd to me: will there be side > > effects if it leaves cur_term initialized? Won't another call to > > setupterm just override what was initialized by libgpm? (from reading > > the ncurses source, it looks like it will) > > Erf, it looks like in the case of pinfo, when exitting the terminal is > left in ncurses mode, with intr, quit, erase, etc set to <undef> in > stty...
That sounds more like pinfo is calling initscr and exiting without calling endwin. The upper-level initscr/newterm change the terminal to raw-mode. setupterm (reading the code to refresh my memory) is only doing data manipulation - not changing the terminal's mode. (I suspect doing a del_curterm underneath initscr will not work very well). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
pgpJ7VSKJGvyN.pgp
Description: PGP signature