aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/shell.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-01 09:28:17 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-11-01 09:28:17 +0000
commit8642d175f167e12fae087696cc5760aa2f81fa3c (patch)
tree8dd5f8fc8036f02b74d858f01d056bc5622895d1 /os/various/shell.c
parentb9192d716f3dff8467a46a241de41be218b2aa49 (diff)
downloadChibiOS-8642d175f167e12fae087696cc5760aa2f81fa3c.tar.gz
ChibiOS-8642d175f167e12fae087696cc5760aa2f81fa3c.tar.bz2
ChibiOS-8642d175f167e12fae087696cc5760aa2f81fa3c.zip
Small shell improvement.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7440 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various/shell.c')
-rw-r--r--os/various/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/shell.c b/os/various/shell.c
index 69365133e..15e86051a 100644
--- a/os/various/shell.c
+++ b/os/various/shell.c
@@ -282,7 +282,7 @@ bool shellGetLine(BaseSequentialStream *chp, char *line, unsigned size) {
chprintf(chp, "^D");
return TRUE;
}
- if (c == 8) {
+ if ((c == 8) || (c == 127)) {
if (p != line) {
chSequentialStreamPut(chp, c);
chSequentialStreamPut(chp, 0x20);