Shell backspace fix.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9941 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
a31fcb8cc3
commit
2c5ca8e4ad
|
@ -521,9 +521,9 @@ bool shellGetLine(ShellConfig *scfg, char *line, unsigned size, ShellHistory *sh
|
||||||
#endif
|
#endif
|
||||||
if ((c == 8) || (c == 127)) {
|
if ((c == 8) || (c == 127)) {
|
||||||
if (p != line) {
|
if (p != line) {
|
||||||
streamPut(chp, c);
|
streamPut(chp, 0x08);
|
||||||
streamPut(chp, 0x20);
|
streamPut(chp, 0x20);
|
||||||
streamPut(chp, c);
|
streamPut(chp, 0x08);
|
||||||
p--;
|
p--;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue