From 731186395aba9bd8585ac77ff288ddfa0bc04c8b Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 23 Jan 2009 00:12:31 +0000 Subject: 2009-01-23 Chris Johns * libmisc/shell/shell.c: Fix command line parsing of valid characters. --- cpukit/libmisc/shell/shell.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/libmisc/shell/shell.c') diff --git a/cpukit/libmisc/shell/shell.c b/cpukit/libmisc/shell/shell.c index 0a784ba712..e5ed33dc2b 100644 --- a/cpukit/libmisc/shell/shell.c +++ b/cpukit/libmisc/shell/shell.c @@ -311,7 +311,6 @@ int rtems_shell_line_editor( break; case '\b': - case '\x7e': case '\x7f': if (col > 0) { @@ -353,7 +352,7 @@ int rtems_shell_line_editor( return cmd; default: - if ((col < (size - 1)) && (c >= ' ') && (c <= 'z')) { + if ((col < (size - 1)) && (c >= ' ') && (c <= '~')) { int end = strlen (line); if (inserting && (col < end) && (end < size)) { int ch, bs; -- cgit v1.2.3