blob: fc824ccd5ae6b2429d0f10c031b9b9928128e843 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Editors"
7
Denys Vlasenkod70e0e92010-06-08 12:15:11 +02008INSERT
9
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000010config AWK
Eric Andersenc9f20d92002-12-05 08:41:41 +000011 bool "awk"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020012 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000013 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000014 Awk is used as a pattern scanning and processing language. This is
Eric Andersene5642112003-07-14 19:37:08 +000015 the BusyBox implementation of that programming language.
Eric Andersenc9f20d92002-12-05 08:41:41 +000016
Denis Vlasenko2d5bd802008-10-24 10:49:49 +000017config FEATURE_AWK_LIBM
Rob Landley2ec922e2006-04-13 23:22:16 +000018 bool "Enable math functions (requires libm)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020019 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000020 depends on AWK
Eric Andersenc9f20d92002-12-05 08:41:41 +000021 help
Eric Andersene5642112003-07-14 19:37:08 +000022 Enable math functions of the Awk programming language.
23 NOTE: This will require libm to be present for linking.
Eric Andersenc9f20d92002-12-05 08:41:41 +000024
Denis Vlasenkocc5e0902007-06-12 08:12:33 +000025config CMP
26 bool "cmp"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020027 default y
Denis Vlasenkocc5e0902007-06-12 08:12:33 +000028 help
29 cmp is used to compare two files and returns the result
30 to standard output.
31
32config DIFF
33 bool "diff"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020034 default y
Denis Vlasenkocc5e0902007-06-12 08:12:33 +000035 help
36 diff compares two files or directories and outputs the
37 differences between them in a form that can be given to
38 the patch command.
39
Matheus Izvekovb32aa0c2010-01-18 18:40:02 -020040config FEATURE_DIFF_LONG_OPTIONS
41 bool "Enable long options"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020042 default y
Matheus Izvekovb32aa0c2010-01-18 18:40:02 -020043 depends on DIFF && LONG_OPTS
44 help
45 Enable use of long options.
46
Denis Vlasenkocc5e0902007-06-12 08:12:33 +000047config FEATURE_DIFF_DIR
48 bool "Enable directory support"
49 default y
50 depends on DIFF
51 help
52 This option enables support for directory and subdirectory
53 comparison.
54
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000055config ED
Rob Landley3b890392006-05-04 20:56:43 +000056 bool "ed"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020057 default y
Rob Landley3b890392006-05-04 20:56:43 +000058 help
59 The original 1970's Unix text editor, from the days of teletypes.
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000060 Small, simple, evil. Part of SUSv3. If you're not already using
Rob Landley3b890392006-05-04 20:56:43 +000061 this, you don't need it.
62
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config PATCH
Glenn L McGrath655d8142003-06-22 15:32:41 +000064 bool "patch"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020065 default y
Glenn L McGrath655d8142003-06-22 15:32:41 +000066 help
Eric Andersen88c916b2003-10-22 09:58:56 +000067 Apply a unified diff formatted patch.
Glenn L McGrath655d8142003-06-22 15:32:41 +000068
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000069config SED
Eric Andersenc9f20d92002-12-05 08:41:41 +000070 bool "sed"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020071 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000072 help
Eric Andersen65e20a32003-07-05 07:52:35 +000073 sed is used to perform text transformations on a file
74 or input from a pipeline.
Eric Andersenc9f20d92002-12-05 08:41:41 +000075
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000076config VI
Eric Andersenc9f20d92002-12-05 08:41:41 +000077 bool "vi"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020078 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +000079 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000080 'vi' is a text editor. More specifically, it is the One True
81 text editor <grin>. It does, however, have a rather steep
82 learning curve. If you are not already comfortable with 'vi'
Eric Andersen65e20a32003-07-05 07:52:35 +000083 you may wish to use something else.
Eric Andersenc9f20d92002-12-05 08:41:41 +000084
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000085config FEATURE_VI_MAX_LEN
Denis Vlasenko88adfcd2007-12-22 15:40:13 +000086 int "Maximum screen width in vi"
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000087 range 256 16384
Denis Vlasenko88adfcd2007-12-22 15:40:13 +000088 default 4096
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000089 depends on VI
90 help
Denis Vlasenko88adfcd2007-12-22 15:40:13 +000091 Contrary to what you may think, this is not eating much.
92 Make it smaller than 4k only if you are very limited on memory.
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000093
Denis Vlasenkoe3cbfb92007-12-22 17:00:11 +000094config FEATURE_VI_8BIT
95 bool "Allow vi to display 8-bit chars (otherwise shows dots)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020096 default n
Denis Vlasenkoe3cbfb92007-12-22 17:00:11 +000097 depends on VI
98 help
99 If your terminal can display characters with high bit set,
100 you may want to enable this. Note: vi is not Unicode-capable.
101 If your terminal combines several 8-bit bytes into one character
102 (as in Unicode mode), this will not work properly.
103
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000104config FEATURE_VI_COLON
Rob Landley2ec922e2006-04-13 23:22:16 +0000105 bool "Enable \":\" colon commands (no \"ex\" mode)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000106 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000107 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000108 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000109 Enable a limited set of colon commands for vi. This does not
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000110 provide an "ex" mode.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000111
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000112config FEATURE_VI_YANKMARK
Rob Landley2ec922e2006-04-13 23:22:16 +0000113 bool "Enable yank/put commands and mark cmds"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000114 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000115 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000116 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000117 This will enable you to use yank and put, as well as mark in
118 busybox vi.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000119
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000120config FEATURE_VI_SEARCH
Rob Landley2ec922e2006-04-13 23:22:16 +0000121 bool "Enable search and replace cmds"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000123 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000124 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000125 Select this if you wish to be able to do search and replace in
126 busybox vi.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000127
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000128config FEATURE_VI_USE_SIGNALS
Rob Landley2ec922e2006-04-13 23:22:16 +0000129 bool "Catch signals"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000130 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000131 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000132 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000133 Selecting this option will make busybox vi signal aware. This will
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000134 make busybox vi support SIGWINCH to deal with Window Changes, catch
135 Ctrl-Z and Ctrl-C and alarms.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000136
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000137config FEATURE_VI_DOT_CMD
Rob Landley2ec922e2006-04-13 23:22:16 +0000138 bool "Remember previous cmd and \".\" cmd"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000139 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000140 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000141 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000142 Make busybox vi remember the last command and be able to repeat it.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000143
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000144config FEATURE_VI_READONLY
Rob Landley2ec922e2006-04-13 23:22:16 +0000145 bool "Enable -R option and \"view\" mode"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000146 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000147 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000148 help
Eric Andersene5642112003-07-14 19:37:08 +0000149 Enable the read-only command line option, which allows the user to
150 open a file in read-only mode.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000151
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000152config FEATURE_VI_SETOPTS
Rob Landley2ec922e2006-04-13 23:22:16 +0000153 bool "Enable set-able options, ai ic showmatch"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000154 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000155 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000156 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000157 Enable the editor to set some (ai, ic, showmatch) options.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000158
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000159config FEATURE_VI_SET
Rob Landley2ec922e2006-04-13 23:22:16 +0000160 bool "Support for :set"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000161 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000162 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000163 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000164 Support for ":set".
Eric Andersenc9f20d92002-12-05 08:41:41 +0000165
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000166config FEATURE_VI_WIN_RESIZE
Rob Landley2ec922e2006-04-13 23:22:16 +0000167 bool "Handle window resize"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000168 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000169 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000170 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000171 Make busybox vi behave nicely with terminals that get resized.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000172
Denys Vlasenkoc175c462010-04-18 22:09:30 -0700173config FEATURE_VI_ASK_TERMINAL
174 bool "Use 'tell me cursor position' ESC sequence to measure window"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200175 default y
Denys Vlasenkoc175c462010-04-18 22:09:30 -0700176 depends on VI
177 help
178 If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
179 this option makes vi perform a last-ditch effort to find it:
180 vi positions cursor to 999,999 and asks terminal to report real
181 cursor position using "ESC [ 6 n" escape sequence, then reads stdin.
182
183 This is not clean but helps a lot on serial lines and such.
184
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000185config FEATURE_VI_OPTIMIZE_CURSOR
Rob Landley2ec922e2006-04-13 23:22:16 +0000186 bool "Optimize cursor movement"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000187 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000188 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000189 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000190 This will make the cursor movement faster, but requires more memory
191 and it makes the applet a tiny bit larger.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000192
Denis Vlasenko249fabf2006-12-19 00:29:22 +0000193config FEATURE_ALLOW_EXEC
194 bool "Allow vi and awk to execute shell commands"
195 default y
196 depends on VI || AWK
197 help
198 Enables vi and awk features which allows user to execute
199 shell commands (using system() C call).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000200
Denis Vlasenko249fabf2006-12-19 00:29:22 +0000201endmenu