[GAP Forum] Can't bind readline functions

Ralf diffset at arcor.de
Mon Feb 10 14:43:42 GMT 2020


Am Mon, 10 Feb 2020 15:28:29 +0100
schrieb Bill Allombert <Bill.Allombert at math.u-bordeaux.fr>:

> > > "\e[A": history-search-backward
> > > "\e[B": history-search-forward
> > > (and probably similar for Ctrl-r and Ctrl-n).  
> > 
> > Does that mean there already is a home cooked history search like
> > "reverse-search-history" in gap that I could use? How would I do
> > that? Section 6.8 doesn't mention it (and also not Ctrl-R by the
> > way).  
> 
> In GAP it works this way:
> Enter the beginning of the line you search and press up.

Thanks, yeah that I already figured out. But it wouldn't help me if the
term I want to search for is not at the beginning of the line. Like in
my example: I have used some complicated line way back when and I don't
remember the beginning of that line. In fact, not being very familiar
with gap yet, I want to reuse a function but don't remember it's name, I
only remember that I used it with a Galois field. The code for that I
remember: GF. So I would usually press CTRL-R and type "GF". That brings
back the last line where I used GF *anywhere* on that line. I guess
there is nothing similar in gap?



More information about the Forum mailing list