diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-11-21 08:52:40 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-11-21 08:52:40 +0000 |
commit | 2c5ca8e4ad494e8cbc9b36dede48dc0a9b47691b (patch) | |
tree | 6610def8d7301dd8c28300a7f80350d810e88d4b /os/various | |
parent | a31fcb8cc3651d91eea600d3341c234294289715 (diff) | |
download | ChibiOS-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.c | 4 |
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;
|