aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-02-02 18:35:55 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-02-02 18:35:55 +0000
commit80667e30fbd3feb95a0af4bca0f512694a438bde (patch)
treeac8223bf853a4aeae269030fd4692d717dd876a5 /include
parenta2980c6249e476926f09a185840d893bb9a03a6e (diff)
downloadbusybox-w32-80667e30fbd3feb95a0af4bca0f512694a438bde.tar.gz
busybox-w32-80667e30fbd3feb95a0af4bca0f512694a438bde.tar.bz2
busybox-w32-80667e30fbd3feb95a0af4bca0f512694a438bde.zip
msh: fix Ctrl-C handling with line editing
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 525162d05..028116fe1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -963,10 +963,9 @@ enum {
963}; 963};
964line_input_t *new_line_input_t(int flags); 964line_input_t *new_line_input_t(int flags);
965/* Returns: 965/* Returns:
966 * -1 on read errors or EOF, or on bare Ctrl-D. 966 * -1 on read errors or EOF, or on bare Ctrl-D,
967 * 0 on ctrl-C, 967 * 0 on ctrl-C (the line entered is still returned in 'command'),
968 * >0 length of input string, including terminating '\n' 968 * >0 length of input string, including terminating '\n'
969 * [is this true? stores "" in 'command' if return value is 0 or -1]
970 */ 969 */
971int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *state); 970int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *state);
972#else 971#else