busybox: enable cmp by default (#9133)
[openwrt/svn-archive/archive.git] / package / busybox / config / editors / Config.in
1 #
2 # For a description of the syntax of this configuration file,
3 # see scripts/kbuild/config-language.txt.
4 #
5
6 menu "Editors"
7
8 config BUSYBOX_CONFIG_AWK
9 bool "awk"
10 default y
11 help
12 Awk is used as a pattern scanning and processing language. This is
13 the BusyBox implementation of that programming language.
14
15 config BUSYBOX_CONFIG_FEATURE_AWK_LIBM
16 bool "Enable math functions (requires libm)"
17 default y
18 depends on BUSYBOX_CONFIG_AWK
19 help
20 Enable math functions of the Awk programming language.
21 NOTE: This will require libm to be present for linking.
22
23 config BUSYBOX_CONFIG_CMP
24 bool "cmp"
25 default y
26 help
27 cmp is used to compare two files and returns the result
28 to standard output.
29
30 config BUSYBOX_CONFIG_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
38 config BUSYBOX_CONFIG_FEATURE_DIFF_LONG_OPTIONS
39 bool "Enable long options"
40 default n
41 depends on BUSYBOX_CONFIG_DIFF && BUSYBOX_CONFIG_LONG_OPTS
42 help
43 Enable use of long options.
44
45 config BUSYBOX_CONFIG_FEATURE_DIFF_DIR
46 bool "Enable directory support"
47 default n
48 depends on BUSYBOX_CONFIG_DIFF
49 help
50 This option enables support for directory and subdirectory
51 comparison.
52
53 config BUSYBOX_CONFIG_ED
54 bool "ed"
55 default n
56 help
57 The original 1970's Unix text editor, from the days of teletypes.
58 Small, simple, evil. Part of SUSv3. If you're not already using
59 this, you don't need it.
60
61 config BUSYBOX_CONFIG_PATCH
62 bool "patch"
63 default n
64 help
65 Apply a unified diff formatted patch.
66
67 config BUSYBOX_CONFIG_SED
68 bool "sed"
69 default y
70 help
71 sed is used to perform text transformations on a file
72 or input from a pipeline.
73
74 config BUSYBOX_CONFIG_VI
75 bool "vi"
76 default y
77 help
78 'vi' is a text editor. More specifically, it is the One True
79 text editor <grin>. It does, however, have a rather steep
80 learning curve. If you are not already comfortable with 'vi'
81 you may wish to use something else.
82
83 config BUSYBOX_CONFIG_FEATURE_VI_MAX_LEN
84 int "Maximum screen width in vi"
85 range 256 16384
86 default 1024
87 depends on BUSYBOX_CONFIG_VI
88 help
89 Contrary to what you may think, this is not eating much.
90 Make it smaller than 4k only if you are very limited on memory.
91
92 config BUSYBOX_CONFIG_FEATURE_VI_8BIT
93 bool "Allow vi to display 8-bit chars (otherwise shows dots)"
94 default n
95 depends on BUSYBOX_CONFIG_VI
96 help
97 If your terminal can display characters with high bit set,
98 you may want to enable this. Note: vi is not Unicode-capable.
99 If your terminal combines several 8-bit bytes into one character
100 (as in Unicode mode), this will not work properly.
101
102 config BUSYBOX_CONFIG_FEATURE_VI_COLON
103 bool "Enable \":\" colon commands (no \"ex\" mode)"
104 default y
105 depends on BUSYBOX_CONFIG_VI
106 help
107 Enable a limited set of colon commands for vi. This does not
108 provide an "ex" mode.
109
110 config BUSYBOX_CONFIG_FEATURE_VI_YANKMARK
111 bool "Enable yank/put commands and mark cmds"
112 default y
113 depends on BUSYBOX_CONFIG_VI
114 help
115 This will enable you to use yank and put, as well as mark in
116 busybox vi.
117
118 config BUSYBOX_CONFIG_FEATURE_VI_SEARCH
119 bool "Enable search and replace cmds"
120 default y
121 depends on BUSYBOX_CONFIG_VI
122 help
123 Select this if you wish to be able to do search and replace in
124 busybox vi.
125
126 config BUSYBOX_CONFIG_FEATURE_VI_USE_SIGNALS
127 bool "Catch signals"
128 default y
129 depends on BUSYBOX_CONFIG_VI
130 help
131 Selecting this option will make busybox vi signal aware. This will
132 make busybox vi support SIGWINCH to deal with Window Changes, catch
133 Ctrl-Z and Ctrl-C and alarms.
134
135 config BUSYBOX_CONFIG_FEATURE_VI_DOT_CMD
136 bool "Remember previous cmd and \".\" cmd"
137 default y
138 depends on BUSYBOX_CONFIG_VI
139 help
140 Make busybox vi remember the last command and be able to repeat it.
141
142 config BUSYBOX_CONFIG_FEATURE_VI_READONLY
143 bool "Enable -R option and \"view\" mode"
144 default y
145 depends on BUSYBOX_CONFIG_VI
146 help
147 Enable the read-only command line option, which allows the user to
148 open a file in read-only mode.
149
150 config BUSYBOX_CONFIG_FEATURE_VI_SETOPTS
151 bool "Enable set-able options, ai ic showmatch"
152 default y
153 depends on BUSYBOX_CONFIG_VI
154 help
155 Enable the editor to set some (ai, ic, showmatch) options.
156
157 config BUSYBOX_CONFIG_FEATURE_VI_SET
158 bool "Support for :set"
159 default y
160 depends on BUSYBOX_CONFIG_VI
161 help
162 Support for ":set".
163
164 config BUSYBOX_CONFIG_FEATURE_VI_WIN_RESIZE
165 bool "Handle window resize"
166 default y
167 depends on BUSYBOX_CONFIG_VI
168 help
169 Make busybox vi behave nicely with terminals that get resized.
170
171 config BUSYBOX_CONFIG_FEATURE_VI_ASK_TERMINAL
172 bool "Use 'tell me cursor position' ESC sequence to measure window"
173 default y
174 depends on BUSYBOX_CONFIG_VI
175 help
176 If terminal size can't be retrieved and $LINES/$COLUMNS are not set,
177 this option makes vi perform a last-ditch effort to find it:
178 vi positions cursor to 999,999 and asks terminal to report real
179 cursor position using "ESC [ 6 n" escape sequence, then reads stdin.
180
181 This is not clean but helps a lot on serial lines and such.
182
183 config BUSYBOX_CONFIG_FEATURE_VI_OPTIMIZE_CURSOR
184 bool "Optimize cursor movement"
185 default y
186 depends on BUSYBOX_CONFIG_VI
187 help
188 This will make the cursor movement faster, but requires more memory
189 and it makes the applet a tiny bit larger.
190
191 config BUSYBOX_CONFIG_FEATURE_ALLOW_EXEC
192 bool "Allow vi and awk to execute shell commands"
193 default y
194 depends on BUSYBOX_CONFIG_VI || BUSYBOX_CONFIG_AWK
195 help
196 Enables vi and awk features which allows user to execute
197 shell commands (using system() C call).
198
199 endmenu