FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » determine if ncurses is active
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
determine if ncurses is active [message #177269] Fri, 02 March 2012 21:10 Go to next message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
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.
Re: determine if ncurses is active [message #177271 is a reply to message #177269] Sat, 03 March 2012 00:26 Go to previous messageGo to next message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma: 0
Member
In article <jird1403h9(at)news4(dot)newsguy(dot)com>, crankypuss <no(at)email(dot)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]
Re: determine if ncurses is active [message #177272 is a reply to message #177269] Sat, 03 March 2012 03:25 Go to previous messageGo to next message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
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(at)attglobal(dot)net
==================
Re: determine if ncurses is active [message #177273 is a reply to message #177272] Sat, 03 March 2012 08:12 Go to previous message
crankypuss is currently offline  crankypuss
Messages: 147
Registered: March 2011
Karma: 0
Senior Member
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to place an image within another image at a certain position while retaining transparency using gd
Next Topic: Save Earth.... Avoidable Doomsday...
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 03:56:24 GMT 2024

Total time taken to generate the page: 0.02493 seconds