bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] callback mode pager disable status


From: Chet Ramey
Subject: Re: [Bug-readline] callback mode pager disable status
Date: Thu, 28 Apr 2011 14:09:45 -0400

> Hello Chet,
> 
> readline-6.2 complete.c get_y_or_n:
>   /* For now, disable pager in callback mode, until we later convert to state
>      driven functions.  Have to wait until next major version to add new
>      state definition, since it will change value of RL_STATE_DONE. */
> #if defined (READLINE_CALLBACKS)
>   if (RL_ISSTATE (RL_STATE_CALLBACK))
>     return 1;
> #endif
> 
> this makes readline not much suitable with GDB as GDB uses it only in callback
> mode and thus any large <tab>-completion are printed without any question.

It's not easy to make the readline pager, as it's currently structured, work
in callback mode.  That's a blocking read; it makes many multithreaded
programs that use callback mode not useful.  (Especially window-based programs,
which can't get the input they need to satisfy the request.)

> What is the schedule for `next major version' and/or is there an approved hack
> in the meantime?

You can try to remove that part of the code, restoring the old status quo.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]