blob: 7dbc9b6da6d26d75d9db2738e0eb11a66713aa59 [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
Denis Vlasenko7d219aa2006-10-05 10:17:08 +00008config AWK
Eric Andersenc9f20d92002-12-05 08:41:41 +00009 bool "awk"
10 default n
11 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000012 Awk is used as a pattern scanning and processing language. This is
Eric Andersene5642112003-07-14 19:37:08 +000013 the BusyBox implementation of that programming language.
Eric Andersenc9f20d92002-12-05 08:41:41 +000014
Denis Vlasenko2d5bd802008-10-24 10:49:49 +000015config FEATURE_AWK_LIBM
Rob Landley2ec922e2006-04-13 23:22:16 +000016 bool "Enable math functions (requires libm)"
Denis Vlasenko07832302008-10-20 08:43:10 +000017 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000018 depends on AWK
Eric Andersenc9f20d92002-12-05 08:41:41 +000019 help
Eric Andersene5642112003-07-14 19:37:08 +000020 Enable math functions of the Awk programming language.
21 NOTE: This will require libm to be present for linking.
Eric Andersenc9f20d92002-12-05 08:41:41 +000022
Denis Vlasenkocc5e0902007-06-12 08:12:33 +000023config CMP
24 bool "cmp"
25 default n
26 help
27 cmp is used to compare two files and returns the result
28 to standard output.
29
30config DIFF
31 bool "diff"
32 default n
33 help
34 diff compares two files or directories and outputs the
35 differences between them in a form that can be given to
36 the patch command.
37
38config FEATURE_DIFF_BINARY
39 bool "Enable checks for binary files"
40 default y
41 depends on DIFF
42 help
43 This option enables support for checking for binary files
44 before a comparison is carried out.
45
46config FEATURE_DIFF_DIR
47 bool "Enable directory support"
48 default y
49 depends on DIFF
50 help
51 This option enables support for directory and subdirectory
52 comparison.
53
54config FEATURE_DIFF_MINIMAL
55 bool "Enable -d option to find smaller sets of changes"
56 default n
57 depends on DIFF
58 help
59 Enabling this option allows the use of -d to make diff
60 try hard to find the smallest possible set of changes.
61
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000062config ED
Rob Landley3b890392006-05-04 20:56:43 +000063 bool "ed"
64 default n
65 help
66 The original 1970's Unix text editor, from the days of teletypes.
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000067 Small, simple, evil. Part of SUSv3. If you're not already using
Rob Landley3b890392006-05-04 20:56:43 +000068 this, you don't need it.
69
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000070config PATCH
Glenn L McGrath655d8142003-06-22 15:32:41 +000071 bool "patch"
72 default n
73 help
Eric Andersen88c916b2003-10-22 09:58:56 +000074 Apply a unified diff formatted patch.
Glenn L McGrath655d8142003-06-22 15:32:41 +000075
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000076config SED
Eric Andersenc9f20d92002-12-05 08:41:41 +000077 bool "sed"
78 default n
79 help
Eric Andersen65e20a32003-07-05 07:52:35 +000080 sed is used to perform text transformations on a file
81 or input from a pipeline.
Eric Andersenc9f20d92002-12-05 08:41:41 +000082
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000083config VI
Eric Andersenc9f20d92002-12-05 08:41:41 +000084 bool "vi"
85 default n
86 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000087 'vi' is a text editor. More specifically, it is the One True
88 text editor <grin>. It does, however, have a rather steep
89 learning curve. If you are not already comfortable with 'vi'
Eric Andersen65e20a32003-07-05 07:52:35 +000090 you may wish to use something else.
Eric Andersenc9f20d92002-12-05 08:41:41 +000091
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000092config FEATURE_VI_MAX_LEN
Denis Vlasenko88adfcd2007-12-22 15:40:13 +000093 int "Maximum screen width in vi"
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000094 range 256 16384
Denis Vlasenko88adfcd2007-12-22 15:40:13 +000095 default 4096
Denis Vlasenkoe8a07882007-06-10 15:08:44 +000096 depends on VI
97 help
Denis Vlasenko88adfcd2007-12-22 15:40:13 +000098 Contrary to what you may think, this is not eating much.
99 Make it smaller than 4k only if you are very limited on memory.
Denis Vlasenkoe8a07882007-06-10 15:08:44 +0000100
Denis Vlasenkoe3cbfb92007-12-22 17:00:11 +0000101config FEATURE_VI_8BIT
102 bool "Allow vi to display 8-bit chars (otherwise shows dots)"
103 default y
104 depends on VI
105 help
106 If your terminal can display characters with high bit set,
107 you may want to enable this. Note: vi is not Unicode-capable.
108 If your terminal combines several 8-bit bytes into one character
109 (as in Unicode mode), this will not work properly.
110
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000111config FEATURE_VI_COLON
Rob Landley2ec922e2006-04-13 23:22:16 +0000112 bool "Enable \":\" colon commands (no \"ex\" mode)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000113 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000114 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000115 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000116 Enable a limited set of colon commands for vi. This does not
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000117 provide an "ex" mode.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000118
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000119config FEATURE_VI_YANKMARK
Rob Landley2ec922e2006-04-13 23:22:16 +0000120 bool "Enable yank/put commands and mark cmds"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000121 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000122 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000123 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000124 This will enable you to use yank and put, as well as mark in
125 busybox vi.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000126
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000127config FEATURE_VI_SEARCH
Rob Landley2ec922e2006-04-13 23:22:16 +0000128 bool "Enable search and replace cmds"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000129 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000130 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000131 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000132 Select this if you wish to be able to do search and replace in
133 busybox vi.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000134
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000135config FEATURE_VI_USE_SIGNALS
Rob Landley2ec922e2006-04-13 23:22:16 +0000136 bool "Catch signals"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000137 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000138 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000139 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000140 Selecting this option will make busybox vi signal aware. This will
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000141 make busybox vi support SIGWINCH to deal with Window Changes, catch
142 Ctrl-Z and Ctrl-C and alarms.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000143
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000144config FEATURE_VI_DOT_CMD
Rob Landley2ec922e2006-04-13 23:22:16 +0000145 bool "Remember previous cmd and \".\" cmd"
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 Andersen9c3c38d2003-07-22 09:59:34 +0000149 Make busybox vi remember the last command and be able to repeat it.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000150
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000151config FEATURE_VI_READONLY
Rob Landley2ec922e2006-04-13 23:22:16 +0000152 bool "Enable -R option and \"view\" mode"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000153 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000154 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000155 help
Eric Andersene5642112003-07-14 19:37:08 +0000156 Enable the read-only command line option, which allows the user to
157 open a file in read-only mode.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000158
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000159config FEATURE_VI_SETOPTS
Rob Landley2ec922e2006-04-13 23:22:16 +0000160 bool "Enable set-able options, ai ic showmatch"
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 Enable the editor to set some (ai, ic, showmatch) options.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000165
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000166config FEATURE_VI_SET
Rob Landley2ec922e2006-04-13 23:22:16 +0000167 bool "Support for :set"
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 Support for ":set".
Eric Andersenc9f20d92002-12-05 08:41:41 +0000172
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000173config FEATURE_VI_WIN_RESIZE
Rob Landley2ec922e2006-04-13 23:22:16 +0000174 bool "Handle window resize"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000175 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000176 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000177 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000178 Make busybox vi behave nicely with terminals that get resized.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000179
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000180config FEATURE_VI_OPTIMIZE_CURSOR
Rob Landley2ec922e2006-04-13 23:22:16 +0000181 bool "Optimize cursor movement"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000182 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000183 depends on VI
Eric Andersenc9f20d92002-12-05 08:41:41 +0000184 help
Eric Andersen9c3c38d2003-07-22 09:59:34 +0000185 This will make the cursor movement faster, but requires more memory
186 and it makes the applet a tiny bit larger.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000187
Denis Vlasenko249fabf2006-12-19 00:29:22 +0000188config FEATURE_ALLOW_EXEC
189 bool "Allow vi and awk to execute shell commands"
190 default y
191 depends on VI || AWK
192 help
193 Enables vi and awk features which allows user to execute
194 shell commands (using system() C call).
Eric Andersenc9f20d92002-12-05 08:41:41 +0000195
Denis Vlasenko249fabf2006-12-19 00:29:22 +0000196endmenu