From 2c5ca8e4ad494e8cbc9b36dede48dc0a9b47691b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Mon, 21 Nov 2016 08:52:40 +0000 Subject: Shell backspace fix. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9941 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/shell/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os') 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; -- cgit v1.2.3