936004c9bdd553b9520401972d84391c572daa5f
[platform/upstream/busybox.git] / 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 AWK
9         bool "awk"
10         default n
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 FEATURE_AWK_MATH
16         bool "Enable math functions (requires libm)"
17         default y
18         depends on 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 ED
24         bool "ed"
25         default n
26         help
27           The original 1970's Unix text editor, from the days of teletypes.
28           Small, simple, evil.  Part of SUSv3.  If you're not already using
29           this, you don't need it.
30
31 config PATCH
32         bool "patch"
33         default n
34         help
35           Apply a unified diff formatted patch.
36
37 config SED
38         bool "sed"
39         default n
40         help
41           sed is used to perform text transformations on a file
42           or input from a pipeline.
43
44 config VI
45         bool "vi"
46         default n
47         help
48           'vi' is a text editor.  More specifically, it is the One True
49           text editor <grin>.  It does, however, have a rather steep
50           learning curve.  If you are not already comfortable with 'vi'
51           you may wish to use something else.
52
53 config FEATURE_VI_MAX_LEN
54         int "Maximum line length in vi"
55         range 256 16384
56         default 1024
57         depends on VI
58         help
59           vi uses on-stack buffers for intermediate line buffers.
60           You may want to decrease this parameter if your target machine
61           benefits from smaller stack usage.
62
63 config FEATURE_VI_COLON
64         bool "Enable \":\" colon commands (no \"ex\" mode)"
65         default y
66         depends on VI
67         help
68           Enable a limited set of colon commands for vi.  This does not
69           provide an "ex" mode.
70
71 config FEATURE_VI_YANKMARK
72         bool "Enable yank/put commands and mark cmds"
73         default y
74         depends on VI
75         help
76           This will enable you to use yank and put, as well as mark in
77           busybox vi.
78
79 config FEATURE_VI_SEARCH
80         bool "Enable search and replace cmds"
81         default y
82         depends on VI
83         help
84           Select this if you wish to be able to do search and replace in
85           busybox vi.
86
87 config FEATURE_VI_USE_SIGNALS
88         bool "Catch signals"
89         default y
90         depends on VI
91         help
92           Selecting this option will make busybox vi signal aware.  This will
93           make busybox vi support SIGWINCH to deal with Window Changes, catch
94           Ctrl-Z and Ctrl-C and alarms.
95
96 config FEATURE_VI_DOT_CMD
97         bool "Remember previous cmd and \".\" cmd"
98         default y
99         depends on VI
100         help
101           Make busybox vi remember the last command and be able to repeat it.
102
103 config FEATURE_VI_READONLY
104         bool "Enable -R option and \"view\" mode"
105         default y
106         depends on VI
107         help
108           Enable the read-only command line option, which allows the user to
109           open a file in read-only mode.
110
111 config FEATURE_VI_SETOPTS
112         bool "Enable set-able options, ai ic showmatch"
113         default y
114         depends on VI
115         help
116           Enable the editor to set some (ai, ic, showmatch) options.
117
118 config FEATURE_VI_SET
119         bool "Support for :set"
120         default y
121         depends on VI
122         help
123           Support for ":set".
124
125 config FEATURE_VI_WIN_RESIZE
126         bool "Handle window resize"
127         default y
128         depends on VI
129         help
130           Make busybox vi behave nicely with terminals that get resized.
131
132 config FEATURE_VI_OPTIMIZE_CURSOR
133         bool "Optimize cursor movement"
134         default y
135         depends on VI
136         help
137           This will make the cursor movement faster, but requires more memory
138           and it makes the applet a tiny bit larger.
139
140 config FEATURE_ALLOW_EXEC
141         bool "Allow vi and awk to execute shell commands"
142         default y
143         depends on VI || AWK
144         help
145           Enables vi and awk features which allows user to execute
146           shell commands (using system() C call).
147
148 endmenu