Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site cbosgd.UUCP
Path: utzoo!watmath!clyde!cbosgd!mark
From: mark@cbosgd.UUCP (Mark Horton)
Newsgroups: net.sources.bugs
Subject: Re: Terminfo distribution doesn't work?
Message-ID: <650@cbosgd.UUCP>
Date: Sun, 6-Jan-85 01:16:38 EST
Article-I.D.: cbosgd.650
Posted: Sun Jan  6 01:16:38 1985
Date-Received: Sun, 6-Jan-85 05:16:32 EST
References: <6273@boring.UUCP> <6276@boring.UUCP>
Organization: Bell Labs, Columbus
Lines: 11

The System V curses is slightly different from either of the two
cases you describe.  If there is an error in initscr, an error
message is printed and the program exits.  initscr will not return
under such circumstances.  (If you want to catch the error, there
is a lower level routine you can call instead of initscr that will
return a detectable error status.)

There is no reason to modify programs to check stdscr after calling
initscr.  If anything, perhaps the posted initscr should be changed.  The
interface between the application program and curses is more important
than any particular implementation of curses.