diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/Config.src | 4 | ||||
-rw-r--r-- | editors/awk.c | 20 | ||||
-rw-r--r-- | editors/cmp.c | 6 | ||||
-rw-r--r-- | editors/diff.c | 12 | ||||
-rw-r--r-- | editors/ed.c | 8 | ||||
-rw-r--r-- | editors/patch.c | 4 | ||||
-rw-r--r-- | editors/patch_toybox.c | 2 | ||||
-rw-r--r-- | editors/sed.c | 6 | ||||
-rw-r--r-- | editors/vi.c | 84 |
9 files changed, 73 insertions, 73 deletions
diff --git a/editors/Config.src b/editors/Config.src index 8f2b265bd..0920bc494 100644 --- a/editors/Config.src +++ b/editors/Config.src | |||
@@ -12,7 +12,7 @@ config FEATURE_ALLOW_EXEC | |||
12 | default y | 12 | default y |
13 | depends on VI || AWK | 13 | depends on VI || AWK |
14 | help | 14 | help |
15 | Enables vi and awk features which allow user to execute | 15 | Enables vi and awk features which allow user to execute |
16 | shell commands (using system() C call). | 16 | shell commands (using system() C call). |
17 | 17 | ||
18 | endmenu | 18 | endmenu |
diff --git a/editors/awk.c b/editors/awk.c index e8e2c96f8..602a1d5e7 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -8,30 +8,30 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | //config:config AWK | 10 | //config:config AWK |
11 | //config: bool "awk" | 11 | //config: bool "awk (22 kb)" |
12 | //config: default y | 12 | //config: default y |
13 | //config: help | 13 | //config: help |
14 | //config: Awk is used as a pattern scanning and processing language. This is | 14 | //config: Awk is used as a pattern scanning and processing language. This is |
15 | //config: the BusyBox implementation of that programming language. | 15 | //config: the BusyBox implementation of that programming language. |
16 | //config: | 16 | //config: |
17 | //config:config FEATURE_AWK_LIBM | 17 | //config:config FEATURE_AWK_LIBM |
18 | //config: bool "Enable math functions (requires libm)" | 18 | //config: bool "Enable math functions (requires libm)" |
19 | //config: default y | 19 | //config: default y |
20 | //config: depends on AWK | 20 | //config: depends on AWK |
21 | //config: help | 21 | //config: help |
22 | //config: Enable math functions of the Awk programming language. | 22 | //config: Enable math functions of the Awk programming language. |
23 | //config: NOTE: This will require libm to be present for linking. | 23 | //config: NOTE: This requires libm to be present for linking. |
24 | //config: | 24 | //config: |
25 | //config:config FEATURE_AWK_GNU_EXTENSIONS | 25 | //config:config FEATURE_AWK_GNU_EXTENSIONS |
26 | //config: bool "Enable a few GNU extensions" | 26 | //config: bool "Enable a few GNU extensions" |
27 | //config: default y | 27 | //config: default y |
28 | //config: depends on AWK | 28 | //config: depends on AWK |
29 | //config: help | 29 | //config: help |
30 | //config: Enable a few features from gawk: | 30 | //config: Enable a few features from gawk: |
31 | //config: * command line option -e AWK_PROGRAM | 31 | //config: * command line option -e AWK_PROGRAM |
32 | //config: * simultaneous use of -f and -e on the command line. | 32 | //config: * simultaneous use of -f and -e on the command line. |
33 | //config: This enables the use of awk library files. | 33 | //config: This enables the use of awk library files. |
34 | //config: Ex: awk -f mylib.awk -e '{print myfunction($1);}' ... | 34 | //config: Example: awk -f mylib.awk -e '{print myfunction($1);}' ... |
35 | 35 | ||
36 | //applet:IF_AWK(APPLET_NOEXEC(awk, awk, BB_DIR_USR_BIN, BB_SUID_DROP, awk)) | 36 | //applet:IF_AWK(APPLET_NOEXEC(awk, awk, BB_DIR_USR_BIN, BB_SUID_DROP, awk)) |
37 | 37 | ||
diff --git a/editors/cmp.c b/editors/cmp.c index a4af6f480..f53d9603c 100644 --- a/editors/cmp.c +++ b/editors/cmp.c | |||
@@ -11,11 +11,11 @@ | |||
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ | 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/cmp.html */ |
12 | 12 | ||
13 | //config:config CMP | 13 | //config:config CMP |
14 | //config: bool "cmp" | 14 | //config: bool "cmp (5.4 kb)" |
15 | //config: default y | 15 | //config: default y |
16 | //config: help | 16 | //config: help |
17 | //config: cmp is used to compare two files and returns the result | 17 | //config: cmp is used to compare two files and returns the result |
18 | //config: to standard output. | 18 | //config: to standard output. |
19 | 19 | ||
20 | //kbuild:lib-$(CONFIG_CMP) += cmp.o | 20 | //kbuild:lib-$(CONFIG_CMP) += cmp.o |
21 | 21 | ||
diff --git a/editors/diff.c b/editors/diff.c index 975bc4603..62f558944 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -77,12 +77,12 @@ | |||
77 | */ | 77 | */ |
78 | 78 | ||
79 | //config:config DIFF | 79 | //config:config DIFF |
80 | //config: bool "diff" | 80 | //config: bool "diff (13 kb)" |
81 | //config: default y | 81 | //config: default y |
82 | //config: help | 82 | //config: help |
83 | //config: diff compares two files or directories and outputs the | 83 | //config: diff compares two files or directories and outputs the |
84 | //config: differences between them in a form that can be given to | 84 | //config: differences between them in a form that can be given to |
85 | //config: the patch command. | 85 | //config: the patch command. |
86 | //config: | 86 | //config: |
87 | //config:config FEATURE_DIFF_LONG_OPTIONS | 87 | //config:config FEATURE_DIFF_LONG_OPTIONS |
88 | //config: bool "Enable long options" | 88 | //config: bool "Enable long options" |
@@ -94,8 +94,8 @@ | |||
94 | //config: default y | 94 | //config: default y |
95 | //config: depends on DIFF | 95 | //config: depends on DIFF |
96 | //config: help | 96 | //config: help |
97 | //config: This option enables support for directory and subdirectory | 97 | //config: This option enables support for directory and subdirectory |
98 | //config: comparison. | 98 | //config: comparison. |
99 | 99 | ||
100 | //kbuild:lib-$(CONFIG_DIFF) += diff.o | 100 | //kbuild:lib-$(CONFIG_DIFF) += diff.o |
101 | 101 | ||
diff --git a/editors/ed.c b/editors/ed.c index c028b78cb..c594d3da1 100644 --- a/editors/ed.c +++ b/editors/ed.c | |||
@@ -8,12 +8,12 @@ | |||
8 | */ | 8 | */ |
9 | 9 | ||
10 | //config:config ED | 10 | //config:config ED |
11 | //config: bool "ed" | 11 | //config: bool "ed (25 kb)" |
12 | //config: default y | 12 | //config: default y |
13 | //config: help | 13 | //config: help |
14 | //config: The original 1970's Unix text editor, from the days of teletypes. | 14 | //config: The original 1970's Unix text editor, from the days of teletypes. |
15 | //config: Small, simple, evil. Part of SUSv3. If you're not already using | 15 | //config: Small, simple, evil. Part of SUSv3. If you're not already using |
16 | //config: this, you don't need it. | 16 | //config: this, you don't need it. |
17 | 17 | ||
18 | //kbuild:lib-$(CONFIG_ED) += ed.o | 18 | //kbuild:lib-$(CONFIG_ED) += ed.o |
19 | 19 | ||
diff --git a/editors/patch.c b/editors/patch.c index 731a8c58a..81316fae3 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -23,10 +23,10 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | //config:config PATCH | 25 | //config:config PATCH |
26 | //config: bool "patch" | 26 | //config: bool "patch (9.1 kb)" |
27 | //config: default y | 27 | //config: default y |
28 | //config: help | 28 | //config: help |
29 | //config: Apply a unified diff formatted patch. | 29 | //config: Apply a unified diff formatted patch. |
30 | 30 | ||
31 | //applet:IF_PATCH(APPLET(patch, BB_DIR_USR_BIN, BB_SUID_DROP)) | 31 | //applet:IF_PATCH(APPLET(patch, BB_DIR_USR_BIN, BB_SUID_DROP)) |
32 | 32 | ||
diff --git a/editors/patch_toybox.c b/editors/patch_toybox.c index 5174acd6a..2c958d287 100644 --- a/editors/patch_toybox.c +++ b/editors/patch_toybox.c | |||
@@ -26,7 +26,7 @@ | |||
26 | USE_PATCH(NEWTOY(patch, USE_TOYBOX_DEBUG("x")"up#i:R", TOYFLAG_USR|TOYFLAG_BIN)) | 26 | USE_PATCH(NEWTOY(patch, USE_TOYBOX_DEBUG("x")"up#i:R", TOYFLAG_USR|TOYFLAG_BIN)) |
27 | 27 | ||
28 | config PATCH | 28 | config PATCH |
29 | bool "patch" | 29 | bool "patch (9.1 kb)" |
30 | default y | 30 | default y |
31 | help | 31 | help |
32 | usage: patch [-i file] [-p depth] [-Ru] | 32 | usage: patch [-i file] [-p depth] [-Ru] |
diff --git a/editors/sed.c b/editors/sed.c index b2c7ba829..e10078b7c 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -57,11 +57,11 @@ | |||
57 | */ | 57 | */ |
58 | 58 | ||
59 | //config:config SED | 59 | //config:config SED |
60 | //config: bool "sed" | 60 | //config: bool "sed (12 kb)" |
61 | //config: default y | 61 | //config: default y |
62 | //config: help | 62 | //config: help |
63 | //config: sed is used to perform text transformations on a file | 63 | //config: sed is used to perform text transformations on a file |
64 | //config: or input from a pipeline. | 64 | //config: or input from a pipeline. |
65 | 65 | ||
66 | //kbuild:lib-$(CONFIG_SED) += sed.o | 66 | //kbuild:lib-$(CONFIG_SED) += sed.o |
67 | 67 | ||
diff --git a/editors/vi.c b/editors/vi.c index 900b41cb5..91e954a87 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -21,13 +21,13 @@ | |||
21 | */ | 21 | */ |
22 | 22 | ||
23 | //config:config VI | 23 | //config:config VI |
24 | //config: bool "vi" | 24 | //config: bool "vi (22 kb)" |
25 | //config: default y | 25 | //config: default y |
26 | //config: help | 26 | //config: help |
27 | //config: 'vi' is a text editor. More specifically, it is the One True | 27 | //config: 'vi' is a text editor. More specifically, it is the One True |
28 | //config: text editor <grin>. It does, however, have a rather steep | 28 | //config: text editor <grin>. It does, however, have a rather steep |
29 | //config: learning curve. If you are not already comfortable with 'vi' | 29 | //config: learning curve. If you are not already comfortable with 'vi' |
30 | //config: you may wish to use something else. | 30 | //config: you may wish to use something else. |
31 | //config: | 31 | //config: |
32 | //config:config FEATURE_VI_MAX_LEN | 32 | //config:config FEATURE_VI_MAX_LEN |
33 | //config: int "Maximum screen width" | 33 | //config: int "Maximum screen width" |
@@ -35,77 +35,77 @@ | |||
35 | //config: default 4096 | 35 | //config: default 4096 |
36 | //config: depends on VI | 36 | //config: depends on VI |
37 | //config: help | 37 | //config: help |
38 | //config: Contrary to what you may think, this is not eating much. | 38 | //config: Contrary to what you may think, this is not eating much. |
39 | //config: Make it smaller than 4k only if you are very limited on memory. | 39 | //config: Make it smaller than 4k only if you are very limited on memory. |
40 | //config: | 40 | //config: |
41 | //config:config FEATURE_VI_8BIT | 41 | //config:config FEATURE_VI_8BIT |
42 | //config: bool "Allow to display 8-bit chars (otherwise shows dots)" | 42 | //config: bool "Allow to display 8-bit chars (otherwise shows dots)" |
43 | //config: default n | 43 | //config: default n |
44 | //config: depends on VI | 44 | //config: depends on VI |
45 | //config: help | 45 | //config: help |
46 | //config: If your terminal can display characters with high bit set, | 46 | //config: If your terminal can display characters with high bit set, |
47 | //config: you may want to enable this. Note: vi is not Unicode-capable. | 47 | //config: you may want to enable this. Note: vi is not Unicode-capable. |
48 | //config: If your terminal combines several 8-bit bytes into one character | 48 | //config: If your terminal combines several 8-bit bytes into one character |
49 | //config: (as in Unicode mode), this will not work properly. | 49 | //config: (as in Unicode mode), this will not work properly. |
50 | //config: | 50 | //config: |
51 | //config:config FEATURE_VI_COLON | 51 | //config:config FEATURE_VI_COLON |
52 | //config: bool "Enable \":\" colon commands (no \"ex\" mode)" | 52 | //config: bool "Enable \":\" colon commands (no \"ex\" mode)" |
53 | //config: default y | 53 | //config: default y |
54 | //config: depends on VI | 54 | //config: depends on VI |
55 | //config: help | 55 | //config: help |
56 | //config: Enable a limited set of colon commands. This does not | 56 | //config: Enable a limited set of colon commands. This does not |
57 | //config: provide an "ex" mode. | 57 | //config: provide an "ex" mode. |
58 | //config: | 58 | //config: |
59 | //config:config FEATURE_VI_YANKMARK | 59 | //config:config FEATURE_VI_YANKMARK |
60 | //config: bool "Enable yank/put commands and mark cmds" | 60 | //config: bool "Enable yank/put commands and mark cmds" |
61 | //config: default y | 61 | //config: default y |
62 | //config: depends on VI | 62 | //config: depends on VI |
63 | //config: help | 63 | //config: help |
64 | //config: This will enable you to use yank and put, as well as mark. | 64 | //config: This enables you to use yank and put, as well as mark. |
65 | //config: | 65 | //config: |
66 | //config:config FEATURE_VI_SEARCH | 66 | //config:config FEATURE_VI_SEARCH |
67 | //config: bool "Enable search and replace cmds" | 67 | //config: bool "Enable search and replace cmds" |
68 | //config: default y | 68 | //config: default y |
69 | //config: depends on VI | 69 | //config: depends on VI |
70 | //config: help | 70 | //config: help |
71 | //config: Select this if you wish to be able to do search and replace. | 71 | //config: Select this if you wish to be able to do search and replace. |
72 | //config: | 72 | //config: |
73 | //config:config FEATURE_VI_REGEX_SEARCH | 73 | //config:config FEATURE_VI_REGEX_SEARCH |
74 | //config: bool "Enable regex in search and replace" | 74 | //config: bool "Enable regex in search and replace" |
75 | //config: default n # Uses GNU regex, which may be unavailable. FIXME | 75 | //config: default n # Uses GNU regex, which may be unavailable. FIXME |
76 | //config: depends on FEATURE_VI_SEARCH | 76 | //config: depends on FEATURE_VI_SEARCH |
77 | //config: help | 77 | //config: help |
78 | //config: Use extended regex search. | 78 | //config: Use extended regex search. |
79 | //config: | 79 | //config: |
80 | //config:config FEATURE_VI_USE_SIGNALS | 80 | //config:config FEATURE_VI_USE_SIGNALS |
81 | //config: bool "Catch signals" | 81 | //config: bool "Catch signals" |
82 | //config: default y | 82 | //config: default y |
83 | //config: depends on VI | 83 | //config: depends on VI |
84 | //config: help | 84 | //config: help |
85 | //config: Selecting this option will make vi signal aware. This will support | 85 | //config: Selecting this option will make vi signal aware. This will support |
86 | //config: SIGWINCH to deal with Window Changes, catch ^Z and ^C and alarms. | 86 | //config: SIGWINCH to deal with Window Changes, catch ^Z and ^C and alarms. |
87 | //config: | 87 | //config: |
88 | //config:config FEATURE_VI_DOT_CMD | 88 | //config:config FEATURE_VI_DOT_CMD |
89 | //config: bool "Remember previous cmd and \".\" cmd" | 89 | //config: bool "Remember previous cmd and \".\" cmd" |
90 | //config: default y | 90 | //config: default y |
91 | //config: depends on VI | 91 | //config: depends on VI |
92 | //config: help | 92 | //config: help |
93 | //config: Make vi remember the last command and be able to repeat it. | 93 | //config: Make vi remember the last command and be able to repeat it. |
94 | //config: | 94 | //config: |
95 | //config:config FEATURE_VI_READONLY | 95 | //config:config FEATURE_VI_READONLY |
96 | //config: bool "Enable -R option and \"view\" mode" | 96 | //config: bool "Enable -R option and \"view\" mode" |
97 | //config: default y | 97 | //config: default y |
98 | //config: depends on VI | 98 | //config: depends on VI |
99 | //config: help | 99 | //config: help |
100 | //config: Enable the read-only command line option, which allows the user to | 100 | //config: Enable the read-only command line option, which allows the user to |
101 | //config: open a file in read-only mode. | 101 | //config: open a file in read-only mode. |
102 | //config: | 102 | //config: |
103 | //config:config FEATURE_VI_SETOPTS | 103 | //config:config FEATURE_VI_SETOPTS |
104 | //config: bool "Enable settable options, ai ic showmatch" | 104 | //config: bool "Enable settable options, ai ic showmatch" |
105 | //config: default y | 105 | //config: default y |
106 | //config: depends on VI | 106 | //config: depends on VI |
107 | //config: help | 107 | //config: help |
108 | //config: Enable the editor to set some (ai, ic, showmatch) options. | 108 | //config: Enable the editor to set some (ai, ic, showmatch) options. |
109 | //config: | 109 | //config: |
110 | //config:config FEATURE_VI_SET | 110 | //config:config FEATURE_VI_SET |
111 | //config: bool "Support :set" | 111 | //config: bool "Support :set" |
@@ -117,37 +117,37 @@ | |||
117 | //config: default y | 117 | //config: default y |
118 | //config: depends on VI | 118 | //config: depends on VI |
119 | //config: help | 119 | //config: help |
120 | //config: Behave nicely with terminals that get resized. | 120 | //config: Behave nicely with terminals that get resized. |
121 | //config: | 121 | //config: |
122 | //config:config FEATURE_VI_ASK_TERMINAL | 122 | //config:config FEATURE_VI_ASK_TERMINAL |
123 | //config: bool "Use 'tell me cursor position' ESC sequence to measure window" | 123 | //config: bool "Use 'tell me cursor position' ESC sequence to measure window" |
124 | //config: default y | 124 | //config: default y |
125 | //config: depends on VI | 125 | //config: depends on VI |
126 | //config: help | 126 | //config: help |
127 | //config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set, | 127 | //config: If terminal size can't be retrieved and $LINES/$COLUMNS are not set, |
128 | //config: this option makes vi perform a last-ditch effort to find it: | 128 | //config: this option makes vi perform a last-ditch effort to find it: |
129 | //config: position cursor to 999,999 and ask terminal to report real | 129 | //config: position cursor to 999,999 and ask terminal to report real |
130 | //config: cursor position using "ESC [ 6 n" escape sequence, then read stdin. | 130 | //config: cursor position using "ESC [ 6 n" escape sequence, then read stdin. |
131 | //config: This is not clean but helps a lot on serial lines and such. | 131 | //config: This is not clean but helps a lot on serial lines and such. |
132 | //config: | 132 | //config: |
133 | //config:config FEATURE_VI_UNDO | 133 | //config:config FEATURE_VI_UNDO |
134 | //config: bool "Support undo command \"u\"" | 134 | //config: bool "Support undo command \"u\"" |
135 | //config: default y | 135 | //config: default y |
136 | //config: depends on VI | 136 | //config: depends on VI |
137 | //config: help | 137 | //config: help |
138 | //config: Support the 'u' command to undo insertion, deletion, and replacement | 138 | //config: Support the 'u' command to undo insertion, deletion, and replacement |
139 | //config: of text. | 139 | //config: of text. |
140 | //config: | 140 | //config: |
141 | //config:config FEATURE_VI_UNDO_QUEUE | 141 | //config:config FEATURE_VI_UNDO_QUEUE |
142 | //config: bool "Enable undo operation queuing" | 142 | //config: bool "Enable undo operation queuing" |
143 | //config: default y | 143 | //config: default y |
144 | //config: depends on FEATURE_VI_UNDO | 144 | //config: depends on FEATURE_VI_UNDO |
145 | //config: help | 145 | //config: help |
146 | //config: The vi undo functions can use an intermediate queue to greatly lower | 146 | //config: The vi undo functions can use an intermediate queue to greatly lower |
147 | //config: malloc() calls and overhead. When the maximum size of this queue is | 147 | //config: malloc() calls and overhead. When the maximum size of this queue is |
148 | //config: reached, the contents of the queue are committed to the undo stack. | 148 | //config: reached, the contents of the queue are committed to the undo stack. |
149 | //config: This increases the size of the undo code and allows some undo | 149 | //config: This increases the size of the undo code and allows some undo |
150 | //config: operations (especially un-typing/backspacing) to be far more useful. | 150 | //config: operations (especially un-typing/backspacing) to be far more useful. |
151 | //config: | 151 | //config: |
152 | //config:config FEATURE_VI_UNDO_QUEUE_MAX | 152 | //config:config FEATURE_VI_UNDO_QUEUE_MAX |
153 | //config: int "Maximum undo character queue size" | 153 | //config: int "Maximum undo character queue size" |
@@ -155,13 +155,13 @@ | |||
155 | //config: range 32 65536 | 155 | //config: range 32 65536 |
156 | //config: depends on FEATURE_VI_UNDO_QUEUE | 156 | //config: depends on FEATURE_VI_UNDO_QUEUE |
157 | //config: help | 157 | //config: help |
158 | //config: This option sets the number of bytes used at runtime for the queue. | 158 | //config: This option sets the number of bytes used at runtime for the queue. |
159 | //config: Smaller values will create more undo objects and reduce the amount | 159 | //config: Smaller values will create more undo objects and reduce the amount |
160 | //config: of typed or backspaced characters that are grouped into one undo | 160 | //config: of typed or backspaced characters that are grouped into one undo |
161 | //config: operation; larger values increase the potential size of each undo | 161 | //config: operation; larger values increase the potential size of each undo |
162 | //config: and will generally malloc() larger objects and less frequently. | 162 | //config: and will generally malloc() larger objects and less frequently. |
163 | //config: Unless you want more (or less) frequent "undo points" while typing, | 163 | //config: Unless you want more (or less) frequent "undo points" while typing, |
164 | //config: you should probably leave this unchanged. | 164 | //config: you should probably leave this unchanged. |
165 | 165 | ||
166 | //applet:IF_VI(APPLET(vi, BB_DIR_BIN, BB_SUID_DROP)) | 166 | //applet:IF_VI(APPLET(vi, BB_DIR_BIN, BB_SUID_DROP)) |
167 | 167 | ||