diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-02 18:35:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-02 18:35:55 +0000 |
commit | 80667e30fbd3feb95a0af4bca0f512694a438bde (patch) | |
tree | ac8223bf853a4aeae269030fd4692d717dd876a5 /libbb/lineedit.c | |
parent | a2980c6249e476926f09a185840d893bb9a03a6e (diff) | |
download | busybox-w32-80667e30fbd3feb95a0af4bca0f512694a438bde.tar.gz busybox-w32-80667e30fbd3feb95a0af4bca0f512694a438bde.tar.bz2 busybox-w32-80667e30fbd3feb95a0af4bca0f512694a438bde.zip |
msh: fix Ctrl-C handling with line editing
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index d3ee7386e..c191b0572 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -1315,8 +1315,8 @@ static void win_changed(int nsig) | |||
1315 | #define CTRL(a) ((a) & ~0x40) | 1315 | #define CTRL(a) ((a) & ~0x40) |
1316 | 1316 | ||
1317 | /* Returns: | 1317 | /* Returns: |
1318 | * -1 on read errors or EOF, or on bare Ctrl-D. | 1318 | * -1 on read errors or EOF, or on bare Ctrl-D, |
1319 | * 0 on ctrl-C, | 1319 | * 0 on ctrl-C (the line entered is still returned in 'command'), |
1320 | * >0 length of input string, including terminating '\n' | 1320 | * >0 length of input string, including terminating '\n' |
1321 | */ | 1321 | */ |
1322 | int read_line_input(const char *prompt, char *command, int maxsize, line_input_t *st) | 1322 | int read_line_input(const char *prompt, char *command, int maxsize, line_input_t *st) |