From f178188b5b28915196e020edb0290676a80f5c44 Mon Sep 17 00:00:00 2001 From: Reece Date: Tue, 24 May 2022 06:37:51 +0100 Subject: [PATCH] [+] ConsoleTTY `!b` to scroll to bottom --- Source/Console/ConsoleTTY/ConsoleTTY.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/Console/ConsoleTTY/ConsoleTTY.cpp b/Source/Console/ConsoleTTY/ConsoleTTY.cpp index bef595a0..5a229d93 100644 --- a/Source/Console/ConsoleTTY/ConsoleTTY.cpp +++ b/Source/Console/ConsoleTTY/ConsoleTTY.cpp @@ -330,15 +330,20 @@ namespace Aurora::Console::ConsoleTTY } else #endif + if (this->inputField == "!b") + { + this->iScrollPos = -1; + this->bTriggerRedraw = true; + } + else { - #if defined(AURORA_IS_MODERNNT_DERIVED) if (this->inputField == "help") { AuLogInfo("Type !s to enter scroll mode, type !c to enter host-os controlled copy/paste mode (quick-edit)"); } #endif - + AuConsole::DispatchRawLine(this->inputField); } }