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


Groups > comp.lang.php > #5085 > unrolled thread

determine if ncurses is active

Started bycrankypuss <no@email.thanks>
First post2012-03-02 14:10 -0700
Last post2012-03-03 01:12 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  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

#5085 — determine if ncurses is active

Fromcrankypuss <no@email.thanks>
Date2012-03-02 14:10 -0700
Subjectdetermine if ncurses is active
Message-ID<jird1403h9@news4.newsguy.com>
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.

[toc] | [next] | [standalone]


#5087

FromMichael Vilain <vilain@NOspamcop.net>
Date2012-03-02 16:26 -0800
Message-ID<vilain-9A2F46.16263502032012@news.individual.net>
In reply to#5085
In article <jird1403h9@news4.newsguy.com>, crankypuss <no@email.thanks> 
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.

That depends on the library you're using and where you got it.  Have you 
done a google search on the ncurses library?  Can you find a copy of the 
source and paw through it?  My guess is that's the only way you'll find 
the answer.

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]

[toc] | [prev] | [next] | [standalone]


#5088

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-03-02 22:25 -0500
Message-ID<jis2v0$bap$1@dont-email.me>
In reply to#5085
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?

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5089

Fromcrankypuss <no@email.thanks>
Date2012-03-03 01:12 -0700
Message-ID<jisjpn1q82@news1.newsguy.com>
In reply to#5088
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.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web