libbb/lineedit: implement optional Ctrl-R history search

function                                             old     new   delta
read_line_input                                     3433    3957    +524
load_string                                           77      90     +13
input_tab                                           1086    1069     -17
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 537/-17)           Total: 520 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-07-11 07:36:59 +02:00
parent 98f213ed79
commit a669eca3a2
2 changed files with 161 additions and 12 deletions

View File

@@ -94,6 +94,14 @@ config FEATURE_EDITING_SAVEHISTORY
help
Enable history saving in shells.
config FEATURE_REVERSE_SEARCH
bool "Reverse history search"
default y
depends on FEATURE_EDITING_SAVEHISTORY
help
Enable readline-like Ctrl-R combination for reverse history search.
Increases code by about 0.5k.
config FEATURE_TAB_COMPLETION
bool "Tab completion"
default y