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

@@ -132,8 +132,8 @@
//config: help
//config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
//config: this option makes vi perform a last-ditch effort to find it:
//config: vi positions cursor to 999,999 and asks terminal to report real
//config: cursor position using "ESC [ 6 n" escape sequence, then reads stdin.
//config: position cursor to 999,999 and ask terminal to report real
//config: cursor position using "ESC [ 6 n" escape sequence, then read stdin.
//config:
//config: This is not clean but helps a lot on serial lines and such.
//config: