determine if ncurses is active [message #177269] |
Fri, 02 March 2012 21:10 |
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 |
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 |
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 |
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.
|
|
|