#3 Pull-word completion

open
nobody
5
2003-08-13
2003-08-13
Francois Leblanc
No

This patch implements the pull-word completion feature
talked about a bit in the forums. Start typing something
and hit CTRL-P. It will try to complete the word with the
next matching word found in the console's history
buffer. Pressing CTRL-P several times while always
holding the CTRL button searches further up the history
buffer

There is no runtime penalty to this feature other then
when hitting CTRL-P. It is at this time only that the
history buffer is queried from the background console.
The buffer is kept as long as the CTRL key is held and
discarded after. It should be reasonably fast but
depends on your history buffer size (mine has a 9999
lines).

Currently there is no option to turn it off. It may be
necessary to include one in cases where a console
application expects to receive CTRL-P's (like a console-
mode text editors).

It has not been thoroughly tested. Also the sources
might not blend well with current development sources.
Report any bug you find :-P and sorry for the
inconvenience.

Discussion