summaryrefslogtreecommitdiff
path: root/miscutils/chat.c
diff options
context:
space:
mode:
authorDenys Vlasenko2016-11-22 23:14:24 +0100
committerDenys Vlasenko2016-11-22 23:14:24 +0100
commitfb4da167114e96d7f20ef97474f976f8ffa604e7 (patch)
tree6f688202bc89ffa68b6679d1b252fd69b7471c94 /miscutils/chat.c
parent9f8eb1ee7620020e01b3596ac7259d51ebca7a7b (diff)
downloadbusybox-fb4da167114e96d7f20ef97474f976f8ffa604e7.zip
busybox-fb4da167114e96d7f20ef97474f976f8ffa604e7.tar.gz
Split miscutils/Config.src items into miscutils/*.c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/chat.c')
-rw-r--r--miscutils/chat.c66
1 files changed, 66 insertions, 0 deletions
diff --git a/miscutils/chat.c b/miscutils/chat.c
index 6b429f2..92a2344 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -7,6 +7,72 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config CHAT
+//config: bool "chat"
+//config: default y
+//config: help
+//config: Simple chat utility.
+//config:
+//config:config FEATURE_CHAT_NOFAIL
+//config: bool "Enable NOFAIL expect strings"
+//config: depends on CHAT
+//config: default y
+//config: help
+//config: When enabled expect strings which are started with a dash trigger
+//config: no-fail mode. That is when expectation is not met within timeout
+//config: the script is not terminated but sends next SEND string and waits
+//config: for next EXPECT string. This allows to compose far more flexible
+//config: scripts.
+//config:
+//config:config FEATURE_CHAT_TTY_HIFI
+//config: bool "Force STDIN to be a TTY"
+//config: depends on CHAT
+//config: default n
+//config: help
+//config: Original chat always treats STDIN as a TTY device and sets for it
+//config: so-called raw mode. This option turns on such behaviour.
+//config:
+//config:config FEATURE_CHAT_IMPLICIT_CR
+//config: bool "Enable implicit Carriage Return"
+//config: depends on CHAT
+//config: default y
+//config: help
+//config: When enabled make chat to terminate all SEND strings with a "\r"
+//config: unless "\c" is met anywhere in the string.
+//config:
+//config:config FEATURE_CHAT_SWALLOW_OPTS
+//config: bool "Swallow options"
+//config: depends on CHAT
+//config: default y
+//config: help
+//config: Busybox chat require no options. To make it not fail when used
+//config: in place of original chat (which has a bunch of options) turn
+//config: this on.
+//config:
+//config:config FEATURE_CHAT_SEND_ESCAPES
+//config: bool "Support weird SEND escapes"
+//config: depends on CHAT
+//config: default y
+//config: help
+//config: Original chat uses some escape sequences in SEND arguments which
+//config: are not sent to device but rather performs special actions.
+//config: E.g. "\K" means to send a break sequence to device.
+//config: "\d" delays execution for a second, "\p" -- for a 1/100 of second.
+//config: Before turning this option on think twice: do you really need them?
+//config:
+//config:config FEATURE_CHAT_VAR_ABORT_LEN
+//config: bool "Support variable-length ABORT conditions"
+//config: depends on CHAT
+//config: default y
+//config: help
+//config: Original chat uses fixed 50-bytes length ABORT conditions. Say N here.
+//config:
+//config:config FEATURE_CHAT_CLR_ABORT
+//config: bool "Support revoking of ABORT conditions"
+//config: depends on CHAT
+//config: default y
+//config: help
+//config: Support CLR_ABORT directive.
//usage:#define chat_trivial_usage
//usage: "EXPECT [SEND [EXPECT [SEND...]]]"