lineedit: allow window size tracking to be disabled

function                                             old     new   delta
lineedit_read_key                                    269     261      -8
win_changed                                           47       -     -47
read_line_input                                     3884    3821     -63
cmdedit_setwidth                                      63       -     -63
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 0/2 up/down: 0/-181)           Total: -181 bytes

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Ron Yorston
2018-02-25 20:09:54 +01:00
committed by Denys Vlasenko
parent e20a703fd3
commit 23286900da
2 changed files with 19 additions and 4 deletions

View File

@@ -149,6 +149,11 @@ config FEATURE_EDITING_FANCY_PROMPT
Setting this option allows for prompts to use things like \w and
\$ and escape codes.
config FEATURE_EDITING_WINCH
bool "Enable automatic tracking of window size changes"
default y
depends on FEATURE_EDITING
config FEATURE_EDITING_ASK_TERMINAL
bool "Query cursor position from terminal"
default n