From 80667e30fbd3feb95a0af4bca0f512694a438bde Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 2 Feb 2008 18:35:55 +0000 Subject: msh: fix Ctrl-C handling with line editing --- include/libbb.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index 525162d..028116f 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -963,10 +963,9 @@ enum { }; line_input_t *new_line_input_t(int flags); /* Returns: - * -1 on read errors or EOF, or on bare Ctrl-D. - * 0 on ctrl-C, + * -1 on read errors or EOF, or on bare Ctrl-D, + * 0 on ctrl-C (the line entered is still returned in 'command'), * >0 length of input string, including terminating '\n' - * [is this true? stores "" in 'command' if return value is 0 or -1] */ int read_line_input(const char* prompt, char* command, int maxsize, line_input_t *state); #else -- cgit v1.1