diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-18 23:24:46 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-18 23:24:46 +0000 |
| commit | 5233cd38003724fad3b4355174d367337f5a3d49 (patch) | |
| tree | d1f2e4ea4d414702d18d7cfc7f44cef01be585d5 /miscutils | |
| parent | 6f04391cecd8579f4bf5007b456e9ee79d718cff (diff) | |
| download | busybox-w32-5233cd38003724fad3b4355174d367337f5a3d49.tar.gz busybox-w32-5233cd38003724fad3b4355174d367337f5a3d49.tar.bz2 busybox-w32-5233cd38003724fad3b4355174d367337f5a3d49.zip | |
chat: new applet by dronnikov AT gmail.com. With all options on:
function old new delta
chat_main - 1230 +1230
unescape - 135 +135
packed_usage 23802 23922 +120
signal_handler 123 131 +8
input_backward 123 128 +5
applet_names 1775 1780 +5
applet_main 1076 1080 +4
applet_nameofs 538 540 +2
exitcode - 1 +1
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 6/0 up/down: 1510/0) Total: 1510 bytes
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/Config.in | 60 | ||||
| -rw-r--r-- | miscutils/Kbuild | 1 |
2 files changed, 61 insertions, 0 deletions
diff --git a/miscutils/Config.in b/miscutils/Config.in index d64d05345..9df1b0e85 100644 --- a/miscutils/Config.in +++ b/miscutils/Config.in | |||
| @@ -19,6 +19,66 @@ config BBCONFIG | |||
| 19 | The bbconfig applet will print the config file with which | 19 | The bbconfig applet will print the config file with which |
| 20 | busybox was built. | 20 | busybox was built. |
| 21 | 21 | ||
| 22 | config CHAT | ||
| 23 | bool "chat" | ||
| 24 | default n | ||
| 25 | help | ||
| 26 | Simple chat utility. | ||
| 27 | |||
| 28 | config FEATURE_CHAT_NOFAIL | ||
| 29 | bool "Enable NOFAIL expect strings" | ||
| 30 | default y | ||
| 31 | help | ||
| 32 | When enabled expect strings which are started with a dash trigger | ||
| 33 | no-fail mode. That is when expectation is not met within timeout | ||
| 34 | the script is not terminated but sends next SEND string and waits | ||
| 35 | for next EXPECT string. This allows to compose far more flexible | ||
| 36 | scripts. | ||
| 37 | |||
| 38 | config FEATURE_CHAT_TTY_HIFI | ||
| 39 | bool "Force STDIN to be a TTY" | ||
| 40 | default n | ||
| 41 | help | ||
| 42 | Original chat always treats STDIN as a TTY device and sets for it | ||
| 43 | so-called raw mode. This option turns on such behaviour. | ||
| 44 | |||
| 45 | config FEATURE_CHAT_IMPLICIT_CR | ||
| 46 | bool "Enable implicit Carriage Return" | ||
| 47 | default y | ||
| 48 | help | ||
| 49 | When enabled make chat to terminate all SEND strings with a "\r" | ||
| 50 | unless "\c" is met anywhere in the string. | ||
| 51 | |||
| 52 | config FEATURE_CHAT_SWALLOW_OPTS | ||
| 53 | bool "Swallow options" | ||
| 54 | default n | ||
| 55 | help | ||
| 56 | Busybox chat require no options. To make it not fail when used | ||
| 57 | in place of original chat (which has a bunch of options) turn | ||
| 58 | this on. | ||
| 59 | |||
| 60 | config FEATURE_CHAT_SEND_ESCAPES | ||
| 61 | bool "Support weird SEND escapes" | ||
| 62 | default n | ||
| 63 | help | ||
| 64 | Original chat uses some escape sequences in SEND arguments which | ||
| 65 | are not sent to device but rather performs special actions. | ||
| 66 | E.g. "\K" means to send a break sequence to device. | ||
| 67 | "\d" delays execution for a second, "\p" -- for a 1/100 of second. | ||
| 68 | Before turning this option on think twice: do you really need them? | ||
| 69 | |||
| 70 | config FEATURE_CHAT_VAR_ABORT_LEN | ||
| 71 | bool "Support variable-length ABORT conditions" | ||
| 72 | default n | ||
| 73 | help | ||
| 74 | Original chat uses fixed 50-bytes length ABORT conditions. Say N here. | ||
| 75 | |||
| 76 | config FEATURE_CHAT_CLR_ABORT | ||
| 77 | bool "Support revoking of ABORT conditions" | ||
| 78 | default n | ||
| 79 | help | ||
| 80 | Support CLR_ABORT directive. | ||
| 81 | |||
| 22 | config CHRT | 82 | config CHRT |
| 23 | bool "chrt" | 83 | bool "chrt" |
| 24 | default n | 84 | default n |
diff --git a/miscutils/Kbuild b/miscutils/Kbuild index a9dc833e6..51187c556 100644 --- a/miscutils/Kbuild +++ b/miscutils/Kbuild | |||
| @@ -7,6 +7,7 @@ | |||
| 7 | lib-y:= | 7 | lib-y:= |
| 8 | lib-$(CONFIG_ADJTIMEX) += adjtimex.o | 8 | lib-$(CONFIG_ADJTIMEX) += adjtimex.o |
| 9 | lib-$(CONFIG_BBCONFIG) += bbconfig.o | 9 | lib-$(CONFIG_BBCONFIG) += bbconfig.o |
| 10 | lib-$(CONFIG_CHAT) += chat.o | ||
| 10 | lib-$(CONFIG_CHRT) += chrt.o | 11 | lib-$(CONFIG_CHRT) += chrt.o |
| 11 | lib-$(CONFIG_CROND) += crond.o | 12 | lib-$(CONFIG_CROND) += crond.o |
| 12 | lib-$(CONFIG_CRONTAB) += crontab.o | 13 | lib-$(CONFIG_CRONTAB) += crontab.o |
