Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5089

Re: determine if ncurses is active

From crankypuss <no@email.thanks>
Newsgroups comp.lang.php
Subject Re: determine if ncurses is active
Date 2012-03-03 01:12 -0700
Organization NewsGuy - Unlimited Usenet $19.95
Message-ID <jisjpn1q82@news1.newsguy.com> (permalink)
References <jird1403h9@news4.newsguy.com> <jis2v0$bap$1@dont-email.me>

Show all headers | View raw


On 03/02/2012 08:25 PM, Jerry Stuckle wrote:
> On 3/2/2012 4:10 PM, crankypuss wrote:
>> Is there a function you can call to determine whether ncurses is between
>> ncurses_init() and ncurses_end() without getting an error message?
>>
>> I'm using ncurses_baudrate() which returns false if uninitialized and
>> ncurses_isendwin() to determine if ncurses_end() is done and that gives
>> a correct answer as far as I can tell but ncurses_baudrate() issues a
>> warning that it hasn't been initialized.
>
> Can't you keep track of whether you've initialized your ncurses lib or not?

Yes, I switched over to doing that because of the messages.  It's kind 
of sad to have to, but that's how it goes.  Thanks J.

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

determine if ncurses is active crankypuss <no@email.thanks> - 2012-03-02 14:10 -0700
  Re: determine if ncurses is active Michael Vilain <vilain@NOspamcop.net> - 2012-03-02 16:26 -0800
  Re: determine if ncurses is active Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-02 22:25 -0500
    Re: determine if ncurses is active crankypuss <no@email.thanks> - 2012-03-03 01:12 -0700

csiph-web