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