Firmware: Use ESC [ K to blank line

Change-Id: I055057a1b6a17644198bc3f7f3b22d9fd8f19570
This commit is contained in:
David Banks 2019-11-09 14:12:17 +00:00
parent 14a0daaffd
commit 35e3c8f314

View File

@ -557,14 +557,12 @@ void readCmd(char *cmd) {
#if defined(COMMAND_HISTORY)
// Wipe out the last command
Serial_TxByte0(13);
for (i = 0; i < 32; i++) {
Serial_TxByte0(32);
}
Serial_TxByte0(13);
Serial_TxByte0(27);
Serial_TxByte0('[');
Serial_TxByte0('K');
#endif
logstr(">> ");
#if defined(COMMAND_HISTORY)
i = 0;
if (reuse) {
while (cmd[i]) {
Serial_TxByte0(cmd[i++]);