Update display buffer handling

This commit is contained in:
EnderIce2
2024-02-10 06:56:26 +02:00
parent 5f80e40885
commit cfd4b8d6a5
15 changed files with 431 additions and 495 deletions

View File

@ -267,7 +267,7 @@ namespace CrashHandler
{
if (BackSpaceLimit > 0)
{
Display->Print('\b', SBIdx);
Display->Print('\b');
backspace(UserInputBuffer);
BackSpaceLimit--;
}
@ -281,10 +281,10 @@ namespace CrashHandler
else
{
append(UserInputBuffer, s_cst(char, key));
Display->Print((char)key, SBIdx);
Display->Print((char)key);
BackSpaceLimit++;
}
Display->SetBuffer(SBIdx); /* Update as we type. */
Display->UpdateBuffer(); /* Update as we type. */
}
#endif // a64 || a32
}