[Top][All Lists]

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

Re: Discussing Readline

From: Chet Ramey
Subject: Re: Discussing Readline
Date: Fri, 19 Mar 2021 09:29:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 3/18/21 12:48 PM, IFo Hancroft wrote:
Would this be the right place to discuss Readline as well as propose

Usually it's bug-readline@gnu.org.

If readline is included in an ncurses software that also uses its own
keybindings for things, how would that work?

It depends on what that application uses to read input. If it uses a
straight call to readline(), readline will read from the terminal and
interpret key bindings. If the application chooses to read characters
from the terminal itself and use the readline callback interface, the
readline key bindings will apply. If the application uses some other
mechanism to read input, such as getch(), that function determines how
to interpret key sequences.

Does the software receive the keys and decides what to give to readline
or does readline receive them?

This is the calling application's choice, and depends on which family of
functions it calls.

If it's the latter - do all keyboard
shortcuts received when readline is in insert mode, get passed to the
software that's including/using readline?

If this means what I think it does, no. readline() gives the calling
application complete lines of input.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

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