<br><br><div class="gmail_quote">On 8 November 2010 02:23, Adrien PiĆ©rard <span dir="ltr"><<a href="mailto:pierarda@iro.umontreal.ca">pierarda@iro.umontreal.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/11/7 Michele Zaffalon <<a href="mailto:michele.zaffalon@gmail.com">michele.zaffalon@gmail.com</a>>:<br>
> Hi all,<br>
<br>
Hi Michele<br>
<div class="im"><br>
> I am using Gambit from the terminal: is it it possible to change the<br>
> terminal behaviour so that if you type a partial word and hit up<br>
> arrow, the terminal tries to complete it with a command from the past<br>
> command history that matches the partial word, not just with the last<br>
> command?<br>
<br>
</div>This behaviour is, as far as I know, not very common.<br>
Most pervasive completion systems are based on the readline library,<br>
which Gambit reimplemented if I remember correctly.<br>
So, <up> will always give you the previous command in history (though<br>
some of us believe that the previous S-exp would be better).<br>
In your case, what you want is to use <tab>, form completion. And this<br>
works well.<br></blockquote><div><br>Readline implements incremental search with C-r, which works like the OP describes (C-r, then start typing to match against history), so rlwrap can be useful for dealing with prompts that don't provide any such functionality (I use it with sqlite3's repl).<br>
Gambit doesn't respond to C-r, on my system anyway, but it might be easy enough to implement a similar incremental search?<br></div></div>