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


Groups > comp.lang.php > #5088

Re: determine if ncurses is active

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: determine if ncurses is active
Date 2012-03-02 22:25 -0500
Organization A noiseless patient Spider
Message-ID <jis2v0$bap$1@dont-email.me> (permalink)
References <jird1403h9@news4.newsguy.com>

Show all headers | View raw


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
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next 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