[*] Another consoletty bug

This commit is contained in:
Reece Wilson 2022-05-19 23:30:18 +01:00
parent 19b29b8c08
commit fe88ae9821

View File

@ -362,7 +362,6 @@ namespace Aurora::Console::ConsoleTTY
void TTYConsole::HistoryUpdateCursor()
{
this->iHistoryPos = -1;
this->noncanonicalCursorPos = AuMin<AuUInt32>(this->noncanonicalCursorPos, GuessWidth(this->inputField));
this->noncanonicalCursorPosInBytes = AuMin<AuUInt32>(this->noncanonicalCursorPosInBytes, this->inputField.size());
RedrawInput(true);
@ -416,6 +415,7 @@ namespace Aurora::Console::ConsoleTTY
void TTYConsole::OnEnter()
{
this->iHistoryPos = -1;
auto line = this->currentHeight;
this->inputField.clear();
this->RedrawInput(true);
@ -518,7 +518,6 @@ namespace Aurora::Console::ConsoleTTY
this->screenBuffer.clear();
addMessages(this->messages);
addMessages(messagesPending);
// Redraw entire screenbuffer
return true;