From a669eca3a230e35e4a6894a30168a047000f3b75 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 11 Jul 2011 07:36:59 +0200 Subject: 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 --- libbb/Config.src | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libbb/Config.src') diff --git a/libbb/Config.src b/libbb/Config.src index 0ea8f43..aa44236 100644 --- a/libbb/Config.src +++ b/libbb/Config.src @@ -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 -- cgit v1.1