summaryrefslogtreecommitdiff
path: root/editors/Config.in
diff options
context:
space:
mode:
authorDenys Vlasenko2010-04-18 22:09:30 -0700
committerDenys Vlasenko2010-04-18 22:09:30 -0700
commitc175c4664734e5a363d8cc8668c08f551eff1485 (patch)
tree7a71009d3d5a9b3a0e8be65bf020f4605cee4bae /editors/Config.in
parentdef4783a8a8b00f58d224ff6735d3532809aeb54 (diff)
downloadbusybox-c175c4664734e5a363d8cc8668c08f551eff1485.zip
busybox-c175c4664734e5a363d8cc8668c08f551eff1485.tar.gz
vi: discover window size even on serial consoles. optional
function old new delta edit_file 671 761 +90 wh_helper - 57 +57 query_screen_dimensions 54 63 +9 ar_main 533 542 +9 refresh 767 773 +6 vi_main 242 243 +1 text_yank 56 54 -2 get_terminal_width_height 180 135 -45 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 5/2 up/down: 172/-47) Total: 125 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors/Config.in')
-rw-r--r--editors/Config.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/editors/Config.in b/editors/Config.in
index e4fdd0f..5f9566f 100644
--- a/editors/Config.in
+++ b/editors/Config.in
@@ -168,6 +168,18 @@ config FEATURE_VI_WIN_RESIZE
help
Make busybox vi behave nicely with terminals that get resized.
+config FEATURE_VI_ASK_TERMINAL
+ bool "Use 'tell me cursor position' ESC sequence to measure window"
+ default n
+ depends on VI
+ help
+ If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
+ this option makes vi perform a last-ditch effort to find it:
+ vi positions cursor to 999,999 and asks terminal to report real
+ cursor position using "ESC [ 6 n" escape sequence, then reads stdin.
+
+ This is not clean but helps a lot on serial lines and such.
+
config FEATURE_VI_OPTIMIZE_CURSOR
bool "Optimize cursor movement"
default y