> * Chet Ramey <[EMAIL PROTECTED]> [2005-10-16 22:38:38 -0400]:
>
> Sam Steingold wrote:
>>>* Chet Ramey <[EMAIL PROTECTED]> [2005-10-16 17:53:39 -0400]:
>>>
>>>Sam Steingold wrote:
>
>> 
>> is there a way to check whether readline has been initialized already?
>> e.g., clisp may be running interactively and using readline and it may
>> be running in the batch mode and not using readline (so when the
>> SIGWINCH handler is called, readline has not been initialized).
>
> The rl_readline_state variable has the RL_INITIALIZED bit set after
> initialization.

thanks a lot!
Do I understand correctly that

 #if defined(HAVE_READLINE) && defined(RL_ISSTATE) && defined(RL_INITIALIZED)
  if (RL_ISSTATE(RL_INITIALIZED))
    rl_resize_terminal();
 #endif

is the right way to do that?
Thanks!

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.honestreporting.com> <http://www.palestinefacts.org/>
<http://www.openvotingconsortium.org/> <http://www.jihadwatch.org/>
Your mouse pad is incompatible with MS Windows - your HD will be reformatted.


_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash

Reply via email to