aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-11-21 08:52:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-11-21 08:52:40 +0000
commit2c5ca8e4ad494e8cbc9b36dede48dc0a9b47691b (patch)
tree6610def8d7301dd8c28300a7f80350d810e88d4b /os/various
parenta31fcb8cc3651d91eea600d3341c234294289715 (diff)
downloadChibiOS-2c5ca8e4ad494e8cbc9b36dede48dc0a9b47691b.tar.gz
ChibiOS-2c5ca8e4ad494e8cbc9b36dede48dc0a9b47691b.tar.bz2
ChibiOS-2c5ca8e4ad494e8cbc9b36dede48dc0a9b47691b.zip
Shell backspace fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9941 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r--os/various/shell/shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/various/shell/shell.c b/os/various/shell/shell.c
index 19de2f958..054a7d6b9 100644
--- a/os/various/shell/shell.c
+++ b/os/various/shell/shell.c
@@ -521,9 +521,9 @@ bool shellGetLine(ShellConfig *scfg, char *line, unsigned size, ShellHistory *sh
#endif
if ((c == 8) || (c == 127)) {
if (p != line) {
- streamPut(chp, c);
+ streamPut(chp, 0x08);
streamPut(chp, 0x20);
- streamPut(chp, c);
+ streamPut(chp, 0x08);
p--;
}
continue;