less: optionally query terminal size via "ESC [ 6 n". Closes bug 2659.

+7 bytes is not selected, +100 if selected.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-07-25 15:18:20 +02:00
parent be391e7596
commit 4e552a70ec
4 changed files with 123 additions and 84 deletions

View File

@@ -360,72 +360,6 @@ config FEATURE_LAST_FANCY
logged into the system (mimics sysvinit last). +900 bytes.
endchoice
config LESS
bool "less"
default y
help
'less' is a pager, meaning that it displays text files. It possesses
a wide array of features, and is an improvement over 'more'.
config FEATURE_LESS_MAXLINES
int "Max number of input lines less will try to eat"
default 9999999
depends on LESS
config FEATURE_LESS_BRACKETS
bool "Enable bracket searching"
default y
depends on LESS
help
This option adds the capability to search for matching left and right
brackets, facilitating programming.
config FEATURE_LESS_FLAGS
bool "Enable extra flags"
default y
depends on LESS
help
The extra flags provided do the following:
The -M flag enables a more sophisticated status line.
The -m flag enables a simpler status line with a percentage.
config FEATURE_LESS_MARKS
bool "Enable marks"
default y
depends on LESS
help
Marks enable positions in a file to be stored for easy reference.
config FEATURE_LESS_REGEXP
bool "Enable regular expressions"
default y
depends on LESS
help
Enable regular expressions, allowing complex file searches.
config FEATURE_LESS_WINCH
bool "Enable automatic resizing on window size changes"
default y
depends on LESS
help
Makes less track window size changes.
config FEATURE_LESS_DASHCMD
bool "Enable flag changes ('-' command)"
default y
depends on LESS
help
This enables the ability to change command-line flags within
less itself ('-' keyboard command).
config FEATURE_LESS_LINENUMS
bool "Enable dynamic switching of line numbers"
default y
depends on FEATURE_LESS_DASHCMD
help
Enables "-N" command.
config HDPARM
bool "hdparm"
default y