diff options
author | wdenk <wdenk> | 2004-03-23 22:37:33 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-03-23 22:37:33 +0000 |
commit | 27aa818670ad6776546ee3c1ad339b68866368ef (patch) | |
tree | ad47a46c25295a84f754f15483f5505cc5ed3b43 /common/main.c | |
parent | 4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d (diff) |
* Patch by Carl Riechers, 17 Mar 2004:
Ignore '\0' characters in console input for use with telnet and
telco pads.
* Patch by Leon Kukovec, 17 Mar 2004:
typo fix for strswab prototype #ifdef
Diffstat (limited to 'common/main.c')
-rw-r--r-- | common/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/main.c b/common/main.c index 817c1b461d2..156e4bc3d8a 100644 --- a/common/main.c +++ b/common/main.c @@ -574,6 +574,9 @@ int readline (const char *const prompt) puts ("\r\n"); return (p - console_buffer); + case '\0': /* nul */ + continue; + case 0x03: /* ^C - break */ console_buffer[0] = '\0'; /* discard input */ return (-1); |