[*] Fix clipboard method to work with older noncan apps. still doesnt work under windows terminal
This commit is contained in:
parent
7bfa7911cf
commit
01871aee61
@ -164,9 +164,12 @@ namespace Aurora::Console::ConsoleStd
|
||||
|
||||
if (newHash != gLastHash)
|
||||
{
|
||||
gLastHash = newHash;
|
||||
if (gLastHash)
|
||||
{
|
||||
ConsoleTTY::EnterScrollMode();
|
||||
}
|
||||
gLastHash = newHash;
|
||||
}
|
||||
|
||||
::CloseClipboard();
|
||||
}
|
||||
|
@ -863,6 +863,12 @@ namespace Aurora::Console::ConsoleTTY
|
||||
{
|
||||
if (this->screenBuffer.size() > maxLines)
|
||||
{
|
||||
static bool bSingleShot {};
|
||||
if (!AuExchange(bSingleShot, true))
|
||||
{
|
||||
EnterScrollMode();
|
||||
}
|
||||
|
||||
// TODO (Reece): Removing optimization bc it was broken. This is a nightmare.
|
||||
auto indexBeforePadding = (this->GetBannerFootBorder() ? 1 + this->topLogPadding : 0) + this->topLogPaddingExtra;
|
||||
auto startIndex = this->GetTopBorder() + this->GetBannerLines() + indexBeforePadding;
|
||||
|
Loading…
Reference in New Issue
Block a user