Merge branch 'feature/#34-Add-backspace-support-for-0x7f' of shimatta/shellmatta into develop

close #34
This commit is contained in:
shimatta 2020-03-01 19:06:54 +01:00 committed by Gogs
commit 48fcf05b7d

View File

@ -476,17 +476,12 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t handle,
utils_terminateInput(inst);
}
/** -# check for backspace */
else if('\b' == *data)
else if( ('\b' == *data)
|| ('\x7f' == *data))
{
inst->dirty = true;
utils_removeChars(inst, 1u, true);
}
/** -# check for delete key */
else if(0x7eu == *data)
{
inst->dirty = true;
utils_removeChars(inst, 1u, false);
}
/** -# check for start of escape sequence */
else if('\x1b' == *data)
{